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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x568fd0]
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.004da330
mov ecx, edi
call fcn.00409890
lea eax, [ebp - 0x420]
lea ebx, [esi + 8]
push eax
mov ecx, ebx
call fcn.00409080
mov eax, dword [0x56c0c0]
test eax, eax
je 0x4da476
mov edx, dword [esi + 0x84]
lea ecx, [ebp - 0x420]
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 0x4da476
cmp dword [ebp - 0x408], 0x10
jb 0x4da689
mov edx, dword [ebp - 0x41c]
push edx
jmp 0x4da681
mov eax, dword [0x568018]
cmp eax, 2
je 0x4da48c
cmp eax, 3
je 0x4da48c
cmp dword [esi], 2
jl 0x4da4e2
jmp 0x4da4a8
cmp dword [ebp - 0x408], 0x10
mov eax, dword [ebp - 0x41c]
jae 0x4da4a1
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x408], 0x10
mov eax, dword [ebp - 0x41c]
jae 0x4da4bd
lea eax, [ebp - 0x41c]
push eax
push 0x530f60
call fcn.0050466f
add eax, 0x40
push eax
call fcn.00504553
call fcn.0050466f
add eax, 0x40
push eax
call fcn.005044f7
add esp, 0x10
push 0
push 0
call fcn.004d9fc0
mov eax, dword [0x568018]
add esp, 8
test eax, eax
je 0x4da599
cmp eax, 2
je 0x4da599
cmp dword [0x56c0cc], 0
jne 0x4da51d
mov eax, dword [0x56c0d0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4da528
mov ecx, dword [0x56c0c8]
call fcn.004dd2b0
call fcn.004da150
test al, al
je 0x4da577
mov ecx, dword [0x56c0b0]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x408], 0x10
mov eax, dword [ebp - 0x41c]
jae 0x4da559
lea eax, [ebp - 0x41c]
mov ecx, dword [ebp - 0x40c]
push 0
lea edx, [ebp - 0x440]
push edx
mov edx, dword [0x56c0b0]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x56c0cc], 0
jne 0x4da58e
mov eax, dword [0x56c0d0]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4da599
mov ecx, dword [0x56c0c8]
call fcn.004dd2c0
mov eax, dword [esi]
cmp eax, 4
jne 0x4da61e
mov ecx, dword [ebp - 0x40c]
mov eax, 0x400
cmp ecx, eax
jae 0x4da5b1
mov eax, ecx
cmp dword [ebp - 0x408], 0x10
mov ecx, dword [ebp - 0x41c]
jae 0x4da5c6
lea ecx, [ebp - 0x41c]
push eax
push ecx
lea ecx, [ebp - 0x404]
push 0x400
push ecx
call fcn.00501ba9
lea edx, [ebp - 0x404]
push edx
call fcn.004e8c00
add esp, 0x14
call fcn.004ea1b0
test al, al
je 0x4da5f8
call fcn.004ea1c0
jmp 0x4da671
cmp dword [0x56c0b8], 0
je 0x4da5f1
lea eax, [ebp - 0x43c]
push eax
mov ecx, ebx
call fcn.00409080
lea ecx, [ebp - 0x43c]
push ecx
call dword [0x56c0b8]
jmp 0x4da663
cmp eax, 3
jne 0x4da671
cmp dword [0x56c0bc], 0
je 0x4da649
lea edx, [ebp - 0x43c]
push edx
mov ecx, ebx
call fcn.00409080
lea eax, [ebp - 0x43c]
push eax
call dword [0x56c0bc]
jmp 0x4da663
lea ecx, [ebp - 0x43c]
push ecx
mov ecx, ebx
call fcn.00409080
lea edx, [ebp - 0x43c]
push edx
call fcn.004d9d80
add esp, 4
lea ecx, [ebp - 0x43c]
call fcn.00404000
cmp dword [ebp - 0x408], 0x10
jb 0x4da689
mov eax, dword [ebp - 0x41c]
push eax
call fcn.00501b8f
add esp, 4
mov ecx, dword [esi + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x4c]
mov ecx, esi
call fcn.00406a00
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.004f0a02
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501b9a
mov esp, ebp
pop ebp
ret