Function at 0x42f870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cac56
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x660124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x190], ebx
cmp byte [ebx + 0x1c], 0
lea edi, [ebx + 4]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x1a8], edi
mov dword [ebp - 0x198], edi
je 0x42f8d0
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebx + 0x20], 0
mov dword [ebp - 4], 0
je 0x42f8e7
cmp dword [ebx + 0x34], 0
je 0x430470
mov eax, dword [0x66bdb4]
mov ecx, 1
test eax, eax
cmovg ecx, eax
mov eax, dword [ebx + 0x7c]
shr eax, 0x14
cmp eax, ecx
jge 0x42f909
call fcn.00430ee0
test al, al
je 0x42f93f
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x42f919
push eax
call fcn.005a0ddd
add esp, 4
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0x1f
cmp dword [ebx + 0x6c], 0
jne 0x430291
inc dword [ebx + 0x80]
cmp dword [ebx + 0x80], 0x20
jne 0x430470
lea eax, [ebp - 0x184]
mov dword [ebx + 0x80], 0
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00430af0
add esp, 8
lea ecx, [ebp - 0x240]
push 1
push 2
call fcn.0040dd40
mov eax, dword [ebp - 0x240]
push 0
push 2
mov byte [ebp - 4], 1
mov eax, dword [eax + 4]
mov byte [ebp + eax - 0x200], 0x30
lea eax, [ebp - 0x2e0]
push eax
call fcn.0058203b
mov ecx, dword [ebp - 0x170]
add esp, 0xc
add ecx, 0x76c
mov dword [ebp - 0x188], eax
push ecx
lea ecx, [ebp - 0x240]
call fcn.0040e580
mov esi, eax
test esi, esi
jne 0x42f9d8
xor ecx, ecx
jmp 0x42f9df
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x188]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x2d0]
push 2
push eax
call fcn.0058203b
mov ecx, dword [ebp - 0x174]
add esp, 0x18
inc ecx
mov dword [ebp - 0x188], eax
push ecx
mov ecx, esi
call fcn.0040e580
mov esi, eax
test esi, esi
jne 0x42fa22
xor ecx, ecx
jmp 0x42fa29
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x188]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x2c0]
push 2
push eax
call fcn.0058203b
add esp, 0x18
mov dword [ebp - 0x188], eax
mov ecx, esi
push 0x2d
push dword [ebp - 0x178]
call fcn.0040e580
push eax
call fcn.004147a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42fa75
xor ecx, ecx
jmp 0x42fa7c
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x188]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x2b0]
push 2
push eax
call fcn.0058203b
add esp, 0x18
mov dword [ebp - 0x188], eax
mov ecx, esi
push dword [ebp - 0x17c]
call fcn.0040e580
mov esi, eax
test esi, esi
jne 0x42fabd
xor ecx, ecx
jmp 0x42fac4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x188]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x2a0]
push 2
push eax
call fcn.0058203b
add esp, 0x18
mov dword [ebp - 0x188], eax
mov ecx, esi
push dword [ebp - 0x180]
call fcn.0040e580
mov esi, eax
test esi, esi
jne 0x42fb05
xor ecx, ecx
jmp 0x42fb0c
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x188]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
add esp, 0xc
call fcn.00430d30
push eax
push 0x2e
push dword [ebp - 0x184]
mov ecx, esi
call fcn.0040e580
push eax
call fcn.004147a0
add esp, 8
mov ecx, eax
call fcn.0040e580
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x240]
call fcn.0040dc60
cmp byte [ebx + 0x20], 0
mov byte [ebp - 4], 2
je 0x42fba7
lea eax, [ebp - 0x58]
mov ecx, ebx
push eax
call fcn.0042d0e0
test al, al
jne 0x42ff80
push str.Could_not_create_log_file
call fcn.005abf4f
add esp, 4
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
cmovae eax, dword [ebp - 0x58]
push eax
push str.COULD_NOT_CREATE_LOGFILE__s__n
push 2
call fcn.005a8288
add esp, 4
push eax
call fcn.00404d20
add esp, 0xc
jmp 0x42febf
call fcn.00430f00
push eax
lea ecx, [ebp - 0x70]
call fcn.00402cd0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
call fcn.0042d650
add esp, 4
call fcn.00430e60
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00402f10
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 5
jne 0x42fc12
push str.invalid_user
lea ecx, [ebp - 0x28]
call fcn.004046b0
push 0x2e
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.0042c7b0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.004049f0
push 0x2e
push eax
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 7
push eax
call fcn.00421250
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004049f0
push str..log.
push eax
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 9
push eax
call fcn.004040c0
mov ecx, dword [ebx + 0x70]
mov byte [ebp - 4], 0xa
push dword [ecx*4 + 0x5cd5f0]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.004040c0
add esp, 0x48
push 0x2e
push eax
lea eax, [ebp - 0x160]
mov byte [ebp - 4], 0xb
push eax
call fcn.00421250
add esp, 0xc
lea ecx, [ebp - 0x70]
push eax
call fcn.00403e10
lea ecx, [ebp - 0x160]
call fcn.00402c10
lea ecx, [ebp - 0x148]
call fcn.00402c10
lea ecx, [ebp - 0x130]
call fcn.00402c10
lea ecx, [ebp - 0x118]
call fcn.00402c10
lea ecx, [ebp - 0x100]
call fcn.00402c10
lea ecx, [ebp - 0xe8]
call fcn.00402c10
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 5
call fcn.00402c10
call fcn.0042d6f0
mov dword [ebp - 0x18c], eax
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x42fe19
add ebx, 0x24
nop
push 0x5cdae0
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.004048a0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xc
push ecx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004049f0
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x188], ecx
cmp ebx, ecx
je 0x42fd95
cmp dword [ebx + 0x14], 0x10
jb 0x42fd70
mov eax, dword [ebx + 0x14]
mov ecx, ebx
inc eax
push eax
push dword [ebx]
call fcn.004030b0
mov ecx, dword [ebp - 0x188]
mov dword [ebx + 0x14], 0xf
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x42fd88
mov eax, dword [ebx]
jmp 0x42fd8a
mov eax, ebx
push ecx
mov ecx, ebx
mov byte [eax], 0
call fcn.00403040
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x42fdb3
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.004030b0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x42fdf0
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.004030b0
mov ecx, dword [ebp - 0x190]
lea eax, [ebp - 0x58]
push eax
call fcn.0042d0e0
test al, al
jne 0x42ff13
mov eax, dword [ebp - 0x18c]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x42fd20
push str.Could_not_create_logging_file
call fcn.005abf4f
add esp, 4
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
cmovae eax, dword [ebp - 0x58]
push eax
push str.COULD_NOT_CREATE_A_LOGGINGFILE__s_
push 2
call fcn.005a8288
add esp, 4
push eax
call fcn.00404d20
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x10
jb 0x42fe5f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004030b0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x42fe86
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004030b0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x42fead
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004030b0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x42fed4
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004030b0
lea ecx, [ebp - 0x1f0]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.0040dc80
lea eax, [ebp - 0x1f0]
mov byte [ebp - 4], 0xe
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00581fb3
add esp, 4
jmp 0x430470
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x42ff28
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004030b0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x42ff4f
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004030b0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x42ff7a
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004030b0
mov ebx, dword [ebp - 0x190]
push 1
push 2
lea ecx, [ebp - 0x378]
call fcn.0040dd40
mov eax, dword [ebp - 0x378]
push 0
push 2
mov byte [ebp - 4], 0xf
mov eax, dword [eax + 4]
mov byte [ebp + eax - 0x338], 0x30
lea eax, [ebp - 0x290]
push eax
call fcn.0058203b
mov ecx, dword [ebp - 0x170]
add esp, 0xc
add ecx, 0x76c
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x378]
push 0x2f
push ecx
push str.Log_file_created_at:
push eax
call fcn.004144f0
add esp, 8
mov ecx, eax
call fcn.0040e580
push eax
call fcn.004147a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42fffa
xor ecx, ecx
jmp 0x430001
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x18c]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x280]
push 2
push eax
call fcn.0058203b
mov ecx, dword [ebp - 0x174]
add esp, 0x18
inc ecx
mov dword [ebp - 0x18c], eax
push 0x2f
push ecx
mov ecx, esi
call fcn.0040e580
push eax
call fcn.004147a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43004f
xor ecx, ecx
jmp 0x430056
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x18c]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x270]
push 2
push eax
call fcn.0058203b
add esp, 0x18
mov dword [ebp - 0x18c], eax
mov ecx, esi
push 0x20
push dword [ebp - 0x178]
call fcn.0040e580
push eax
call fcn.004147a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4300a2
xor ecx, ecx
jmp 0x4300a9
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x18c]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x260]
push 2
push eax
call fcn.0058203b
add esp, 0x18
mov dword [ebp - 0x18c], eax
mov ecx, esi
push 0x3a
push dword [ebp - 0x17c]
call fcn.0040e580
push eax
call fcn.004147a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4300f5
xor ecx, ecx
jmp 0x4300fc
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x18c]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
push 0
lea eax, [ebp - 0x250]
push 2
push eax
call fcn.0058203b
add esp, 0x18
mov dword [ebp - 0x18c], eax
mov ecx, esi
push 0x3a
push dword [ebp - 0x180]
call fcn.0040e580
push eax
call fcn.004147a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x430148
xor ecx, ecx
jmp 0x43014f
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ebp - 0x18c]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
add esp, 0xc
push 0xa
push str.threadid_file:line__msg
push str.Log_line_format:__IWEF_yyyymmdd_hh:mm:ss.uuuuuu
push 0xa
call fcn.00430530
push eax
push str.Running_on_machine:
push 0xa
push dword [ebp - 0x184]
mov ecx, esi
call fcn.0040e580
push eax
call fcn.004147a0
add esp, 8
push eax
call fcn.004144f0
add esp, 8
push eax
call fcn.00414b10
add esp, 8
push eax
call fcn.004147a0
add esp, 8
push eax
call fcn.004144f0
add esp, 8
push eax
call fcn.004144f0
add esp, 8
push eax
call fcn.004147a0
add esp, 8
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x378]
push eax
call fcn.0040dc60
push dword [ebx + 0x6c]
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 0x10
push esi
cmovae eax, dword [ebp - 0x88]
push 1
push eax
call fcn.005a489a
add dword [ebx + 0x7c], esi
add esp, 0x10
add dword [ebx + 0x74], esi
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x430220
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.004030b0
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
call fcn.0040dc80
lea eax, [ebp - 0x328]
mov byte [ebp - 4], 0x10
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00581fb3
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00402c10
lea ecx, [ebp - 0x1f0]
call fcn.0040dc80
lea eax, [ebp - 0x1f0]
mov byte [ebp - 4], 0x11
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00581fb3
add esp, 4
mov byte [ebp - 4], 0
cmp byte [0x67aaf6], 0
jne 0x430452
call fcn.005a8435
mov esi, dword [ebp + 0x18]
mov dword [eax], 0
push dword [ebx + 0x6c]
push esi
push 1
push dword [ebp - 0x194]
call fcn.005a489a
add esp, 0x10
cmp byte [0x67aaf3], 0
je 0x4302df
call fcn.005a8435
cmp dword [eax], 0x1c
jne 0x4302df
mov byte [0x67aaf6], 1
jmp 0x430470
mov eax, dword [ebx + 0x74]
add dword [ebx + 0x7c], esi
add eax, esi
cmp byte [ebp + 8], 0
mov dword [ebx + 0x74], eax
jne 0x430316
cmp eax, 0xf4240
jae 0x430316
call fcn.00430b10
cmp edx, dword [ebx + 0x8c]
jl 0x430470
jg 0x430316
cmp eax, dword [ebx + 0x88]
jb 0x430470
mov ecx, ebx
call fcn.0042d600
cmp byte [0x66bd12], 0
je 0x430470
call fcn.0042d6f0
mov ebx, eax
mov dword [ebp - 0x190], 0
mov eax, 0x2aaaaaab
mov dword [ebp - 0x194], ebx
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x430470
xor edi, edi
mov dword [ebp - 0x188], edi
push dword [0x65c018]
mov eax, dword [ebx]
sub esp, 0x18
add eax, edi
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00402f10
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042d870
mov ecx, dword [ebp - 0x1a0]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1a4]
add esp, 0x20
sub ecx, esi
xor edi, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x430405
xor ebx, ebx
cmp dword [esi + ebx + 0x14], 0x10
lea eax, [esi + ebx]
jb 0x4303cf
mov eax, dword [eax]
push eax
call fcn.005a460a
mov ecx, dword [ebp - 0x1a0]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1a4]
inc edi
sub ecx, esi
add esp, 4
imul ecx
add ebx, 0x18
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4303c3
mov ebx, dword [ebp - 0x194]
lea ecx, [ebp - 0x1a4]
call fcn.0040db30
mov ecx, dword [ebx + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx]
mov esi, dword [ebp - 0x190]
mov edi, dword [ebp - 0x188]
inc esi
imul ecx
add edi, 0x18
mov dword [ebp - 0x190], esi
sar edx, 2
mov eax, edx
mov dword [ebp - 0x188], edi
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x430365
mov edi, dword [ebp - 0x1a8]
jmp 0x430470
call fcn.00430b10
cmp edx, dword [ebx + 0x8c]
jl 0x430470
jg 0x430469
cmp eax, dword [ebx + 0x88]
jb 0x430470
mov byte [0x67aaf6], 0
cmp byte [edi + 0x18], 0
je 0x430482
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005846b2
mov esp, ebp
pop ebp
ret 0x14