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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4e44b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push 0xa
mov ecx, edi
call fcn.00472b70
mov ecx, edi
call fcn.00402100
lea eax, [ebp - 0x20]
lea ebx, [esi + 8]
push eax
mov ecx, ebx
call fcn.00434ef0
mov eax, dword [0x4e8f8c]
test eax, eax
je 0x472ca7
mov edx, dword [esi + 0x84]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [esi + 0x8c]
push edx
mov edx, dword [esi + 0x88]
push ecx
mov ecx, dword [esi]
push edx
push ecx
call eax
add esp, 0x14
test al, al
je 0x472ca7
cmp dword [ebp - 8], 0x10
jb 0x472e34
mov edx, dword [ebp - 0x1c]
push edx
jmp 0x472e2c
mov eax, dword [0x4e400c]
cmp eax, 2
je 0x472cbd
cmp eax, 3
je 0x472cbd
cmp dword [esi], 2
jl 0x472d01
jmp 0x472cd0
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x472cc9
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x472cdc
lea eax, [ebp - 0x1c]
push eax
push 0x4d0338
call fcn.0049a688
add eax, 0x40
push eax
call fcn.0049a539
call fcn.0049a688
add eax, 0x40
push eax
call fcn.00498c96
add esp, 0x10
push 0
push 0
call fcn.00472680
mov eax, dword [0x4e400c]
add esp, 8
test eax, eax
je 0x472da9
cmp eax, 2
je 0x472da9
cmp dword [0x4e8f98], 0
jne 0x472d3c
mov eax, dword [0x4e8f9c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x472d47
mov ecx, dword [0x4e8f94]
call fcn.00480930
call fcn.00472810
test al, al
je 0x472d87
mov ecx, dword [0x4e8f7c]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x472d6f
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp - 0x40]
push edx
mov edx, dword [0x4e8f7c]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x4e8f98], 0
jne 0x472d9e
mov eax, dword [0x4e8f9c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x472da9
mov ecx, dword [0x4e8f94]
call fcn.00480940
mov eax, dword [esi]
cmp eax, 4
jne 0x472de0
call fcn.004855a0
test al, al
je 0x472dc0
call fcn.004855b0
jmp 0x472e22
cmp dword [0x4e8f84], 0
je 0x472db9
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, ebx
call fcn.00434ef0
lea edx, [ebp - 0x3c]
push edx
call dword [0x4e8f84]
jmp 0x472e17
cmp eax, 3
jne 0x472e22
cmp dword [0x4e8f88], 0
mov ecx, ebx
je 0x472e05
lea eax, [ebp - 0x3c]
push eax
call fcn.00434ef0
lea ecx, [ebp - 0x3c]
push ecx
call dword [0x4e8f88]
jmp 0x472e17
lea edx, [ebp - 0x3c]
push edx
call fcn.00434ef0
lea eax, [ebp - 0x3c]
push eax
call fcn.00472420
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.004020d0
cmp dword [ebp - 8], 0x10
jb 0x472e34
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00495fd1
add esp, 4
mov edx, dword [esi + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x4c]
mov ecx, esi
call fcn.004344c0
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.004953b0
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495cb8
mov esp, ebp
pop ebp
ret