Function at 0x443d90
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x509354]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, dword [0x50c220]
jl 0x443ff8
lea esi, [edi + 4]
push 0xa
mov ecx, esi
call fcn.00443a60
mov ecx, esi
call fcn.0040a3e6
lea ecx, [ebp - 0x20]
lea esi, [edi + 8]
push ecx
mov ecx, esi
call fcn.0040985f
mov eax, dword [0x50c23c]
test eax, eax
je 0x443e07
mov ecx, dword [edi]
lea edx, [ebp - 0x20]
push edx
push ecx
call eax
add esp, 8
test al, al
je 0x443e07
cmp dword [ebp - 8], 0x10
jb 0x443ff8
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0048e006
add esp, 4
jmp 0x443ff8
mov eax, dword [0x50c218]
push ebx
mov ebx, 0x10
test eax, eax
je 0x443e4d
cmp dword [edi], 1
jg 0x443e4d
cmp dword [eax + 0x18], ebx
jb 0x443e25
mov ecx, dword [eax + 4]
jmp 0x443e28
lea ecx, [eax + 4]
mov eax, dword [eax + 0x14]
push ecx
push eax
mov eax, dword [edi + 0x84]
push eax
lea ecx, [ebp - 0x20]
call fcn.00442ee0
test eax, eax
je 0x443e4d
lea ecx, [ebp - 0x20]
call fcn.00401984
jmp 0x443ff7
mov eax, dword [0x507dac]
cmp eax, 2
je 0x443e5c
cmp eax, 3
jne 0x443e6e
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], ebx
jae 0x443e67
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [edi], 2
jl 0x443ea3
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], ebx
jae 0x443e7e
lea eax, [ebp - 0x1c]
push eax
push 0x4e6f60
call fcn.00492d8f
add eax, 0x40
push eax
call fcn.00492c73
call fcn.00492d8f
add eax, 0x40
push eax
call fcn.00492c17
add esp, 0x10
mov eax, dword [0x507dac]
test eax, eax
je 0x443f6b
cmp eax, 2
je 0x443f6b
call fcn.004430e0
test al, al
je 0x443f6b
cmp dword [0x50c224], 0
jne 0x443ee5
call fcn.00443250
mov ecx, dword [0x50c244]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x443f13
mov eax, dword [0x50c240]
test eax, eax
jne 0x443f0c
push 0x18
call fcn.0048e1ac
add esp, 4
test eax, eax
je 0x443f05
mov ecx, eax
call fcn.004478e0
jmp 0x443f07
xor eax, eax
mov dword [0x50c240], eax
mov ecx, eax
call fcn.00447910
mov edx, dword [0x50c22c]
push 2
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], ebx
jae 0x443f31
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
push 0
lea ecx, [ebp - 0x40]
push ecx
push edx
push eax
mov eax, dword [0x50c22c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x50c224], 0
jne 0x443f60
mov ecx, dword [0x50c244]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x443f6b
mov ecx, dword [0x50c240]
call fcn.00447920
mov eax, dword [edi]
cmp eax, 4
jne 0x443fa2
call fcn.0044c7f0
test al, al
je 0x443f82
call fcn.0044c800
jmp 0x443fe6
cmp dword [0x50c234], 0
je 0x443f7b
lea edx, [ebp - 0x3c]
push edx
mov ecx, esi
call fcn.0040985f
lea eax, [ebp - 0x3c]
push eax
call dword [0x50c234]
jmp 0x443fdb
cmp eax, 3
jne 0x443fe6
cmp dword [0x50c238], 0
je 0x443fc7
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, esi
call fcn.0040985f
lea edx, [ebp - 0x3c]
push edx
call dword [0x50c238]
jmp 0x443fdb
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.0040985f
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00442f50
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.00401984
cmp dword [ebp - 8], ebx
jb 0x443ff7
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0048e006
add esp, 4
pop ebx
mov eax, dword [edi + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.004075bc
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.0048d6ab
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
pop esi
call fcn.0048e25d
mov esp, ebp
pop ebp
ret