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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + esi + 0x38]
mov ebx, dword [eax + 4]
mov ecx, ebx
mov dword [ebp - 0x438], ebx
mov eax, dword [ebx]
call dword [eax + 4]
lea eax, [ebp - 0x43c]
push eax
call fcn.00420a90
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0x438], al
test ebx, ebx
je 0x4aa609
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
test eax, eax
je 0x4aa609
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 0x438]
lea ecx, [esi + 8]
call fcn.004ab070
lea ecx, [esi + 8]
call fcn.004219b0
lea eax, [ebp - 0x41c]
push eax
lea ecx, [esi + 8]
call fcn.00498950
mov eax, dword [0x53936c]
test eax, eax
je 0x4aa65f
lea ecx, [ebp - 0x41c]
push ecx
push dword [esi + 0xa0]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi]
call eax
add esp, 0x14
test al, al
jne 0x4aa825
test byte [0x533608], 2
je 0x4aa685
cmp dword [ebp - 0x408], 0x10
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4aa68a
cmp dword [esi], 2
jl 0x4aa6c4
cmp dword [ebp - 0x408], 0x10
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
push 0x51fdb0
push 2
call fcn.004cd288
add esp, 4
push eax
call fcn.004ab280
push 2
call fcn.004cd288
push eax
call fcn.004cc698
add esp, 0x14
test byte [0x533608], 1
je 0x4aa76e
push 0
push 0
call fcn.004aadf0
add esp, 8
cmp dword [0x53937c], 0
jne 0x4aa6f6
push 0xffffffffffffffff
push dword [0x539374]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4aa701
mov ecx, dword [0x539370]
call fcn.004b49e0
call fcn.004aafa0
test al, al
je 0x4aa74c
push 2
push 0
push 0
push dword [0x53935c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x408], 0x10
lea ecx, [ebp - 0x438]
push 0
push ecx
push dword [ebp - 0x40c]
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
push dword [0x53935c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x53937c], 0
jne 0x4aa763
push dword [0x539374]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4aa76e
mov ecx, dword [0x539370]
call fcn.004b49f0
mov eax, dword [esi]
cmp eax, 4
jne 0x4aa7ec
mov ecx, 0x400
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x40c], ecx
cmovb ecx, dword [ebp - 0x40c]
cmp dword [ebp - 0x408], 0x10
push ecx
cmovae eax, dword [ebp - 0x41c]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.004bcd60
lea eax, [ebp - 0x404]
push eax
call fcn.004b49a0
add esp, 0x10
call fcn.004b4970
test al, al
jne 0x4aa7e5
cmp dword [0x539364], 0
je 0x4aa7e5
lea eax, [ebp - 0x434]
push eax
lea ecx, [esi + 8]
call fcn.00498950
push eax
call dword [0x539364]
add esp, 4
jmp 0x4aa81a
call fcn.004b4980
jmp 0x4aa825
cmp eax, 3
jne 0x4aa825
cmp dword [0x539368], 0
lea eax, [ebp - 0x434]
lea ecx, [esi + 8]
push eax
je 0x4aa815
call fcn.00498950
push eax
call dword [0x539368]
add esp, 4
jmp 0x4aa81a
call fcn.00498950
lea ecx, [ebp - 0x434]
call fcn.0041f0c0
mov edx, dword [ebp - 0x408]
cmp edx, 0x10
jb 0x4aa85b
mov ecx, dword [ebp - 0x41c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4aa851
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4aa8c8
push edx
push ecx
call fcn.0048e9ad
add esp, 8
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 8]
add esi, 0x58
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x50c29c
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 0x54], eax
lea ecx, [esi - 0x4c]
call fcn.00495ef0
mov eax, dword [esi - 0x50]
push esi
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x50c254
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 0x54], eax
mov dword [esi], vtable.std::ios_base.0
call fcn.004905b9
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
call fcn.004c5929
int3