Function at 0x43d520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568dd6
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x5cdde4]
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 0x43d580
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebx + 0x20], 0
mov dword [ebp - 4], 0
je 0x43d597
cmp dword [ebx + 0x34], 0
je 0x43e11d
mov eax, dword [0x5d5390]
mov ecx, 1
test eax, eax
cmovg ecx, eax
mov eax, dword [ebx + 0x7c]
shr eax, 0x14
cmp eax, ecx
jge 0x43d5b9
call fcn.00440490
test al, al
je 0x43d5ef
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x43d5c9
push eax
call fcn.005485ce
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 0x43df33
inc dword [ebx + 0x80]
cmp dword [ebx + 0x80], 0x20
jne 0x43e11d
lea eax, [ebp - 0x184]
mov dword [ebx + 0x80], 0
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00440040
add esp, 8
lea ecx, [ebp - 0x240]
push 1
push 2
call fcn.00439780
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.00563481
mov ecx, dword [ebp - 0x170]
add esp, 0xc
add ecx, 0x76c
mov dword [ebp - 0x188], eax
push ecx
lea ecx, [ebp - 0x240]
call fcn.0042c430
mov esi, eax
test esi, esi
jne 0x43d688
xor ecx, ecx
jmp 0x43d68f
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.00563481
mov ecx, dword [ebp - 0x174]
add esp, 0x18
inc ecx
mov dword [ebp - 0x188], eax
push ecx
mov ecx, esi
call fcn.0042c430
mov esi, eax
test esi, esi
jne 0x43d6d2
xor ecx, ecx
jmp 0x43d6d9
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.00563481
add esp, 0x18
mov dword [ebp - 0x188], eax
mov ecx, esi
push 0x2d
push dword [ebp - 0x178]
call fcn.0042c430
push eax
call fcn.00438f60
mov esi, eax
add esp, 8
test esi, esi
jne 0x43d725
xor ecx, ecx
jmp 0x43d72c
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.00563481
add esp, 0x18
mov dword [ebp - 0x188], eax
mov ecx, esi
push dword [ebp - 0x17c]
call fcn.0042c430
mov esi, eax
test esi, esi
jne 0x43d76d
xor ecx, ecx
jmp 0x43d774
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.00563481
add esp, 0x18
mov dword [ebp - 0x188], eax
mov ecx, esi
push dword [ebp - 0x180]
call fcn.0042c430
mov esi, eax
test esi, esi
jne 0x43d7b5
xor ecx, ecx
jmp 0x43d7bc
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.004402d0
push eax
push 0x2e
push dword [ebp - 0x184]
mov ecx, esi
call fcn.0042c430
push eax
call fcn.00438f60
add esp, 8
mov ecx, eax
call fcn.0042c430
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x240]
call fcn.0043f090
cmp byte [ebx + 0x20], 0
mov byte [ebp - 4], 2
je 0x43d857
lea eax, [ebp - 0x58]
mov ecx, ebx
push eax
call fcn.0043a950
test al, al
jne 0x43dc30
push str.Could_not_create_log_file
call fcn.0054c165
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.00548324
add esp, 4
push eax
call fcn.0042a5b0
add esp, 0xc
jmp 0x43db6f
call fcn.004404b0
push eax
lea ecx, [ebp - 0x70]
call fcn.00421dc0
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.0043adf0
add esp, 4
call fcn.00440410
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.00425030
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 5
jne 0x43d8c2
push str.invalid_user
lea ecx, [ebp - 0x28]
call fcn.00422c70
push 0x2e
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00439480
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.004393a0
push 0x2e
push eax
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 7
push eax
call fcn.004393e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004393a0
push str..log.
push eax
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 9
push eax
call fcn.00439420
mov ecx, dword [ebx + 0x70]
mov byte [ebp - 4], 0xa
push dword [ecx*4 + 0x5716b8]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.00439420
add esp, 0x48
push 0x2e
push eax
lea eax, [ebp - 0x160]
mov byte [ebp - 4], 0xb
push eax
call fcn.004393e0
add esp, 0xc
lea ecx, [ebp - 0x70]
push eax
call fcn.00438e37
lea ecx, [ebp - 0x160]
call fcn.00429290
lea ecx, [ebp - 0x148]
call fcn.00429290
lea ecx, [ebp - 0x130]
call fcn.00429290
lea ecx, [ebp - 0x118]
call fcn.00429290
lea ecx, [ebp - 0x100]
call fcn.00429290
lea ecx, [ebp - 0xe8]
call fcn.00429290
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 5
call fcn.00429290
call fcn.0043ae90
mov dword [ebp - 0x18c], eax
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x43dac9
add ebx, 0x24
nop
push 0x571c4c
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.00439550
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xc
push ecx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004393a0
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x188], ecx
cmp ebx, ecx
je 0x43da45
cmp dword [ebx + 0x14], 0x10
jb 0x43da20
mov eax, dword [ebx + 0x14]
mov ecx, ebx
inc eax
push eax
push dword [ebx]
call fcn.00425650
mov ecx, dword [ebp - 0x188]
mov dword [ebx + 0x14], 0xf
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x43da38
mov eax, dword [ebx]
jmp 0x43da3a
mov eax, ebx
push ecx
mov ecx, ebx
mov byte [eax], 0
call fcn.00423ac0
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x43da63
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00425650
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 0x43daa0
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00425650
mov ecx, dword [ebp - 0x190]
lea eax, [ebp - 0x58]
push eax
call fcn.0043a950
test al, al
jne 0x43dbc3
mov eax, dword [ebp - 0x18c]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x43d9d0
push str.Could_not_create_logging_file
call fcn.0054c165
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.00548324
add esp, 4
push eax
call fcn.0042a5b0
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x10
jb 0x43db0f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00425650
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x43db36
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00425650
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x43db5d
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00425650
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x43db84
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00425650
lea ecx, [ebp - 0x1f0]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.00439e30
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.005633f9
add esp, 4
jmp 0x43e11d
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x43dbd8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00425650
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x43dbff
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00425650
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 0x43dc2a
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00425650
mov ebx, dword [ebp - 0x190]
push 1
push 2
lea ecx, [ebp - 0x378]
call fcn.00439780
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.00563481
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.004202e0
add esp, 8
mov ecx, eax
call fcn.0042c430
push eax
call fcn.00438f60
mov esi, eax
add esp, 8
test esi, esi
jne 0x43dcaa
xor ecx, ecx
jmp 0x43dcb1
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.00563481
mov ecx, dword [ebp - 0x174]
add esp, 0x18
inc ecx
mov dword [ebp - 0x18c], eax
push 0x2f
push ecx
mov ecx, esi
call fcn.0042c430
push eax
call fcn.00438f60
mov esi, eax
add esp, 8
test esi, esi
jne 0x43dcff
xor ecx, ecx
jmp 0x43dd06
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.00563481
add esp, 0x18
mov dword [ebp - 0x18c], eax
mov ecx, esi
push 0x20
push dword [ebp - 0x178]
call fcn.0042c430
push eax
call fcn.00438f60
mov esi, eax
add esp, 8
test esi, esi
jne 0x43dd52
xor ecx, ecx
jmp 0x43dd59
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.00563481
add esp, 0x18
mov dword [ebp - 0x18c], eax
mov ecx, esi
push 0x3a
push dword [ebp - 0x17c]
call fcn.0042c430
push eax
call fcn.00438f60
mov esi, eax
add esp, 8
test esi, esi
jne 0x43dda5
xor ecx, ecx
jmp 0x43ddac
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.00563481
add esp, 0x18
mov dword [ebp - 0x18c], eax
mov ecx, esi
push 0x3a
push dword [ebp - 0x180]
call fcn.0042c430
push eax
call fcn.00438f60
mov esi, eax
add esp, 8
test esi, esi
jne 0x43ddf8
xor ecx, ecx
jmp 0x43ddff
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.Log_line_format:__pid:tid:mmdd_hh:mm:ss.uuuuuu:severity:file_line___msg
push 0xa
call fcn.0043e570
push eax
push str.Running_on_machine:
push 0xa
push dword [ebp - 0x184]
mov ecx, esi
call fcn.0042c430
push eax
call fcn.00438f60
add esp, 8
push eax
call fcn.004202e0
add esp, 8
push eax
call fcn.0042a610
add esp, 8
push eax
call fcn.00438f60
add esp, 8
push eax
call fcn.004202e0
add esp, 8
push eax
call fcn.00438f60
add esp, 8
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x378]
push eax
call fcn.0043f090
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.005490bd
add dword [ebx + 0x7c], esi
add esp, 0x10
add dword [ebx + 0x74], esi
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x43dec2
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00425650
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
call fcn.00439e30
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.005633f9
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00429290
lea ecx, [ebp - 0x1f0]
call fcn.00439e30
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.005633f9
add esp, 4
mov byte [ebp - 4], 0
cmp byte [0x5e40d1], 0
jne 0x43e0ff
call fcn.00549533
mov esi, dword [ebp + 0x18]
mov dword [eax], 0
push dword [ebx + 0x6c]
push esi
push 1
push dword [ebp - 0x194]
call fcn.005490bd
add esp, 0x10
cmp byte [0x5dcaa6], 0
je 0x43df81
call fcn.00549533
cmp dword [eax], 0x1c
jne 0x43df81
mov byte [0x5e40d1], 1
jmp 0x43e11d
mov eax, dword [ebx + 0x74]
add dword [ebx + 0x7c], esi
add eax, esi
cmp byte [ebp + 8], 0
mov dword [ebx + 0x74], eax
jne 0x43dfb8
cmp eax, 0xf4240
jae 0x43dfb8
call fcn.004400b0
cmp edx, dword [ebx + 0x8c]
jl 0x43e11d
jg 0x43dfb8
cmp eax, dword [ebx + 0x88]
jb 0x43e11d
mov ecx, ebx
call fcn.0043ada0
cmp byte [0x5d52f9], 0
je 0x43e11d
call fcn.0043ae90
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 0x43e11d
xor edi, edi
mov dword [ebp - 0x188], edi
nop word [eax + eax]
push dword [0x5ca080]
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.00425030
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043b010
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 0x43e0b2
xor ebx, ebx
nop
cmp dword [esi + ebx + 0x14], 0x10
lea eax, [esi + ebx]
jb 0x43e07c
mov eax, dword [eax]
push eax
call fcn.00555044
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 0x43e070
mov ebx, dword [ebp - 0x194]
lea ecx, [ebp - 0x1a4]
call fcn.00439ef0
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 0x43e010
mov edi, dword [ebp - 0x1a8]
jmp 0x43e11d
call fcn.004400b0
cmp edx, dword [ebx + 0x8c]
jl 0x43e11d
jg 0x43e116
cmp eax, dword [ebx + 0x88]
jb 0x43e11d
mov byte [0x5e40d1], 0
cmp byte [edi + 0x18], 0
je 0x43e12f
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.00523ae4
mov esp, ebp
pop ebp
ret 0x14