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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x458
mov esi, esp
mov eax, dword [0x5cf2a4]
lea ebx, [ecx + 8]
mov edi, ecx
mov ecx, ebx
xor eax, ebp
mov dword [esi + 0x450], eax
lea eax, [esi + 0x30]
push eax
call fcn.00414840
mov eax, dword [esi + 0x38]
mov dword [esi + 0x18], edi
add eax, dword [esi + 0x30]
mov dword [esi + 8], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
mov eax, dword [edi + eax + 0x38]
mov ecx, dword [eax + 4]
mov dword [esi + 0x34], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi + 0x30]
push eax
call fcn.004161e0
add esp, 4
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x20]
mov ecx, dword [esi + 0x34]
mov byte [esi], al
test ecx, ecx
je 0x41441e
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x41441e
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
movsx eax, byte [esi]
mov ecx, ebx
push eax
call fcn.00416320
mov ecx, ebx
call fcn.004076fe
mov edi, dword [esi + 0x18]
lea ebx, [esi + 0x438]
lea ecx, [edi + 0xc]
mov dword [esi], ecx
push ebx
call fcn.00415ff0
mov eax, dword [0x5d9904]
test eax, eax
je 0x41446f
push ebx
push dword [edi + 0xa0]
push dword [edi + 0xa8]
push dword [edi + 0xa4]
push dword [edi]
call eax
add esp, 0x14
test al, al
jne 0x41475e
test byte [0x5ce028], 2
jne 0x4144a2
cmp dword [edi], 2
jl 0x414506
push 2
call fcn.004f0ec8
add esp, 4
mov ecx, dword [esi + 0x448]
cmp dword [esi + 0x44c], 0xf
jbe 0x4144e0
mov edx, dword [esi + 0x438]
jmp 0x4144e6
cmp dword [esi + 0x44c], 0xf
mov eax, ebx
jbe 0x4144b3
mov eax, dword [esi + 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
call fcn.004f0ec8
add esp, 4
mov ecx, dword [esi + 0x448]
cmp dword [esi + 0x44c], 0xf
jbe 0x4144d9
mov ebx, dword [esi + 0x438]
push eax
push 1
push ecx
push ebx
jmp 0x4144eb
lea edx, [esi + 0x438]
push eax
push 1
push ecx
push edx
call fcn.004f11b9
add esp, 0x10
push 2
call fcn.004f0ec8
add esp, 4
push eax
call fcn.004f150f
add esp, 4
test byte [0x5ce028], 1
je 0x414549
call fcn.00413ac0
test al, al
je 0x414549
mov eax, dword [esi + 0x448]
cmp dword [esi + 0x44c], 0xf
jbe 0x41452f
mov ecx, dword [esi + 0x438]
jmp 0x414535
lea ecx, [esi + 0x438]
push 0
lea edx, [esi + 0x30]
push edx
push eax
push ecx
push dword [0x5d9924]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi], 3
jne 0x41475e
mov ecx, dword [0x5d995c]
test ecx, ecx
je 0x414580
mov eax, dword [esi + 0x448]
cmp dword [esi + 0x44c], 0xf
jbe 0x414573
mov edx, dword [esi + 0x438]
jmp 0x414579
lea edx, [esi + 0x438]
push eax
push edx
call fcn.0041d060
cmp dword [esi + 0x44c], 0xf
mov dword [esi + 0x30], 0xbedead01
mov dword [esi + 0x434], 0x5050dead
jbe 0x4145a2
mov eax, dword [esi + 0x438]
jmp 0x4145a8
lea eax, [esi + 0x438]
lea ecx, [esi + 0x34]
push 0x400
push eax
push ecx
call fcn.004139b0
add esp, 0xc
lea eax, [esi + 0x30]
push eax
call fcn.0040da00
add esp, 4
mov eax, dword [0x5d9910]
test eax, eax
je 0x414826
mov eax, dword [0x5d9910]
cmp eax, 1
ja 0x41463b
push 0x5d9910
call fcn.004250e0
add esp, 4
test al, al
je 0x414636
mov dword [0x5d9918], 0
mov dword [0x5d9914], 0
mov dword [0x5d9920], 0
mov dword [0x5d991c], 0
push 0x5d9910
push 0
push 0x5d9914
push 0x5d9910
call fcn.00425190
add esp, 0x10
mov eax, 0x5d9914
jmp 0x41463b
mov eax, dword [0x5d9910]
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x414826
mov eax, dword [0x5d9910]
cmp eax, 1
ja 0x4146af
push 0x5d9910
call fcn.004250e0
add esp, 4
test al, al
je 0x4146aa
mov dword [0x5d9918], 0
mov dword [0x5d9914], 0
mov dword [0x5d9920], 0
mov dword [0x5d991c], 0
push 0x5d9910
push 0
push 0x5d9914
push 0x5d9910
call fcn.00425190
add esp, 0x10
mov eax, 0x5d9914
jmp 0x4146af
mov eax, dword [0x5d9910]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 4]
test edx, edx
cmove edx, ecx
dec edx
cmp ecx, edx
jb 0x41482b
shl edx, 2
lea ecx, [esi + 0x1c]
add edx, dword [eax]
push edx
call fcn.00423bd0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x414756
cmp dword [esi + 0x44c], 0xf
jbe 0x4146e9
mov ecx, dword [esi + 0x438]
jmp 0x4146ef
lea ecx, [esi + 0x438]
mov edx, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ecx
add edx, dword [esi + 8]
mov dword [esi + 0xc], edx
je 0x41470d
push edx
call fcn.004ebfa0
add esp, 4
mov dword [esi + 4], eax
jmp 0x414714
mov dword [esi + 4], 0
mov ecx, dword [edi + 0xa0]
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 8]
mov edx, dword [edi + 0xa8]
add eax, ecx
sub ebx, ecx
mov ecx, dword [edi + 0xa4]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x2c], ebx
lea ebx, [esi + 0x28]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x20]
push eax
push ebx
push edx
push ecx
mov eax, dword [esi + 0x14]
push eax
call dword [eax + 4]
add esp, 0x14
lea ecx, [esi + 0x1c]
call fcn.00423bb0
mov eax, dword [esi + 0x44c]
cmp eax, 0x10
jb 0x41479c
mov ecx, dword [esi + 0x438]
lea ebx, [eax + 1]
cmp ebx, 0x1000
jb 0x414792
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x414830
add eax, 0x24
mov ecx, edx
mov ebx, eax
push ebx
push ecx
call fcn.004e570f
add esp, 8
lea ecx, [edi + 0xac]
call fcn.00424df0
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
mov dword [edi + eax + 8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x50]
mov dword [edi + eax + 4], ecx
mov ecx, dword [esi]
mov dword [edi + 0xc], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.004156f0
mov dword [edi + 0xc], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov ebx, dword [edi + 0x40]
lea edi, [edi + 0x58]
test ebx, ebx
je 0x414802
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4147f9
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4147f9
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push ebx
call fcn.004e5f3a
add esp, 4
mov dword [edi], vtable.std::ios_base.0
push edi
call fcn.004d2a53
add esp, 4
mov ecx, dword [esi + 0x450]
xor ecx, ebp
call fcn.004e5b80
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
int3
int3
call fcn.004eba95
int3