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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
mov eax, dword [0x5875a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
lea ebx, [esi + 8]
push edi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x434], ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0x43c], ebx
mov ecx, dword [eax + ebx + 0x38]
test ecx, ecx
je 0x4f4a00
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
mov eax, dword [eax + 4]
cmp dword [eax + ebx + 0xc], 0
jne 0x4f4a1d
mov ecx, dword [eax + ebx + 0x3c]
test ecx, ecx
je 0x4f4a1d
cmp ecx, ebx
je 0x4f4a1d
call fcn.004a07e0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + ebx + 0xc]
test eax, eax
sete byte [ebp - 0x438]
test al, 6
jne 0x4f4a4d
mov ecx, dword [ecx + ebx + 0x38]
lea edx, [ebp - 0x468]
push 2
push 1
push 0
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0x28]
jmp 0x4f4a6d
mov eax, dword [0x557230]
xorps xmm0, xmm0
mov dword [ebp - 0x468], eax
mov eax, dword [0x557234]
mov dword [ebp - 0x464], eax
movups xmmword [ebp - 0x460], xmm0
lea ecx, [ebp - 0x43c]
call fcn.0048a750
mov edi, dword [ebp - 0x468]
add edi, dword [ebp - 0x460]
cmp dword [esi], 3
mov dword [ebp - 0x420], edi
jne 0x4f4ab8
call fcn.004f9320
test al, al
jne 0x4f4ab8
lea ecx, [ebp - 0x56c]
call fcn.004f8d80
push ebx
call fcn.004c0221
add esp, 4
lea ecx, [ebp - 0x56c]
push ebx
call fcn.004fa3d0
push ebx
call fcn.004c0221
add esp, 4
lea eax, [ebp - 0x41c]
mov ecx, ebx
push eax
call fcn.0048ea10
mov eax, dword [0x58c5b8]
test eax, eax
je 0x4f4b00
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 0x4f4d5f
test byte [0x5875c8], 2
je 0x4f4b26
cmp dword [ebp - 0x408], 0x10
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4f4b2b
cmp dword [esi], 2
jl 0x4f4b72
cmp dword [ebp - 0x408], 0x10
lea edi, [ebp - 0x41c]
mov esi, dword [ebp - 0x40c]
cmovae edi, dword [ebp - 0x41c]
push 2
call fcn.0052c28e
push eax
push 1
push esi
push edi
call fcn.0052ca5a
push 2
call fcn.0052c28e
push eax
call fcn.0052c628
mov edi, dword [ebp - 0x420]
add esp, 0x1c
mov esi, dword [ebp - 0x424]
test byte [0x5875c8], 1
je 0x4f4bb4
call fcn.004f5700
test al, al
je 0x4f4bb4
cmp dword [ebp - 0x408], 0x10
lea ecx, [ebp - 0x450]
push 0
push ecx
push dword [ebp - 0x40c]
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
push dword [0x58c59c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi], 3
jne 0x4f4d5f
mov ecx, dword [0x58d1e4]
test ecx, ecx
je 0x4f4bf0
sub esp, 8
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x408], 0x10
mov edx, esp
cmovae eax, dword [ebp - 0x41c]
mov dword [edx], eax
mov eax, dword [ebp - 0x40c]
mov dword [edx + 4], eax
call fcn.004f9eb0
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.00521b30
lea eax, [ebp - 0x404]
push eax
call fcn.004f8d70
mov eax, dword [0x58c5a4]
add esp, 0x10
sub eax, 0
je 0x4f4d5a
sub eax, 1
je 0x4f4c58
cmp dword [0x58c5a4], 0
sete al
test al, al
jne 0x4f4d5a
mov ecx, 0x58c5a4
call fcn.004f5240
mov edx, dword [eax + 8]
cmp edx, dword [eax + 0xc]
je 0x4f4d5a
mov ecx, 0x58c5a4
call fcn.004f5240
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4f4c82
mov ecx, dword [eax + 4]
mov eax, dword [eax]
dec ecx
lea eax, [eax + ecx*4]
push eax
lea ecx, [ebp - 0x428]
call fcn.004f9460
cmp dword [ebp - 0x428], 0
je 0x4f4d4d
cmp dword [ebp - 0x408], 0x10
lea ecx, [ebp - 0x41c]
mov eax, dword [esi + 0xa0]
lea ebx, [ebp - 0x41c]
cmovae ecx, dword [ebp - 0x41c]
cmovae ebx, dword [ebp - 0x41c]
sub edi, eax
lea esi, [ecx + eax]
mov eax, dword [ebp - 0x420]
add eax, ebx
lea ecx, [ebp - 0x470]
push eax
call fcn.004f4770
mov ecx, dword [eax]
mov dword [ebp - 0x444], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x44c], esi
mov esi, dword [ebp - 0x424]
mov dword [ebp - 0x448], edi
mov eax, dword [esi + 0xa8]
mov dword [ebp - 0x42c], eax
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
push eax
mov eax, dword [ebp - 0x428]
push eax
mov eax, dword [eax + 4]
call eax
mov ebx, dword [ebp - 0x434]
add esp, 0x14
lea ecx, [ebp - 0x428]
call fcn.004f94b0
jmp 0x4f4d5f
call fcn.004f9330
mov eax, dword [ebp - 0x408]
cmp eax, 0x10
jb 0x4f4da3
mov ecx, dword [ebp - 0x41c]
inc eax
cmp eax, 0x1000
jb 0x4f4d9a
test cl, 0x1f
jne 0x4f4e0f
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4f4e0f
sub ecx, eax
cmp ecx, 4
jb 0x4f4e0f
cmp ecx, 0x23
ja 0x4f4e0f
mov ecx, eax
push ecx
call fcn.004db150
add esp, 4
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx]
lea esi, [ebx + 0x50]
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x552aa8
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [esi + ecx - 0x54], eax
lea ecx, [esi - 0x4c]
call fcn.0048a600
mov eax, dword [esi - 0x50]
push esi
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x57ae7c
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [esi + ecx - 0x54], eax
mov dword [esi], vtable.std::ios_base.0
call fcn.004d9d91
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004db63a
mov esp, ebp
pop ebp
ret
call fcn.00525588
int3