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

Disassembly:
sub esp, 0x44
mov eax, dword [0x451390]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, dword [0x452fe8]
jl 0x418e88
lea esi, [edi + 4]
push 0xa
mov ecx, esi
call fcn.0040a0f0
mov ecx, esi
call fcn.00401220
lea ecx, [esp + 0x2c]
lea esi, [edi + 8]
push ecx
mov ecx, esi
call fcn.00417cc0
mov eax, dword [0x453000]
test eax, eax
je 0x418d06
mov ecx, dword [edi]
lea edx, [esp + 0x2c]
push edx
push ecx
call eax
add esp, 8
test al, al
je 0x418d06
cmp dword [esp + 0x44], 0x10
jmp 0x418e79
mov eax, dword [0x451004]
push ebx
mov ebx, 0x10
cmp eax, 2
je 0x418d22
cmp eax, 3
je 0x418d22
cmp dword [edi], 2
jl 0x418d6a
jmp 0x418d37
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x418d30
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x418d45
lea eax, [esp + 0x34]
push eax
push 0x445468
call fcn.004285cf
add eax, 0x40
push eax
call fcn.004284b3
call fcn.004285cf
add eax, 0x40
push eax
call fcn.00428457
add esp, 0x10
push 0
push 0
call fcn.00418130
mov eax, dword [0x451004]
add esp, 8
test eax, eax
je 0x418df2
cmp eax, 2
je 0x418df2
lea ecx, [esp + 0xf]
call fcn.00416f10
call fcn.004182e0
test al, al
je 0x418dcf
mov eax, dword [0x452ff0]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x418db6
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
mov eax, dword [0x452ff0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x453008], 0
jne 0x418de7
mov ecx, dword [0x45300c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x418df2
mov ecx, dword [0x453004]
call fcn.0041fd70
mov eax, dword [edi]
cmp eax, 4
jne 0x418e2b
call fcn.00421640
test al, al
je 0x418e09
call fcn.00421650
jmp 0x418e74
cmp dword [0x452ff8], 0
je 0x418e02
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00417cc0
lea eax, [esp + 0x10]
push eax
call dword [0x452ff8]
jmp 0x418e68
cmp eax, 3
jne 0x418e74
cmp dword [0x452ffc], 0
je 0x418e52
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00417cc0
lea edx, [esp + 0x10]
push edx
call dword [0x452ffc]
jmp 0x418e68
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00417cc0
lea ecx, [esp + 0x10]
push ecx
call fcn.00417a30
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00401b00
cmp dword [esp + 0x48], ebx
pop ebx
jb 0x418e88
mov edx, dword [esp + 0x30]
push edx
call fcn.004260c9
add esp, 4
mov eax, dword [edi + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
lea esi, [edi + 0x50]
lea edi, [esi - 0x48]
mov dword [edx + esi - 0x4c], 0x4453c8
mov ecx, edi
mov dword [edi], 0x445390
call fcn.00416be0
mov ecx, edi
call fcn.00417010
mov eax, dword [edi - 4]
mov ecx, dword [eax + 4]
mov dword [ecx + edi - 4], 0x445f0c
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.00425e43
mov ecx, dword [esp + 0x4c]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.004260d4
add esp, 0x44
ret