Function at 0x4142c0
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 [0x5ce16c]
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.00414760
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.004160f0
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 0x41433e
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x41433e
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
movsx eax, byte [esi]
mov ecx, ebx
push eax
call fcn.00416230
mov ecx, ebx
call fcn.004076ce
mov edi, dword [esi + 0x18]
lea ebx, [esi + 0x438]
lea ecx, [edi + 0xc]
mov dword [esi], ecx
push ebx
call fcn.00415f00
mov eax, dword [0x5d87ac]
test eax, eax
je 0x41438f
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 0x41467e
test byte [0x5cd00c], 2
jne 0x4143c2
cmp dword [edi], 2
jl 0x414426
push 2
call fcn.004e99b8
add esp, 4
mov ecx, dword [esi + 0x448]
cmp dword [esi + 0x44c], 0xf
jbe 0x414400
mov edx, dword [esi + 0x438]
jmp 0x414406
cmp dword [esi + 0x44c], 0xf
mov eax, ebx
jbe 0x4143d3
mov eax, dword [esi + 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
call fcn.004e99b8
add esp, 4
mov ecx, dword [esi + 0x448]
cmp dword [esi + 0x44c], 0xf
jbe 0x4143f9
mov ebx, dword [esi + 0x438]
push eax
push 1
push ecx
push ebx
jmp 0x41440b
lea edx, [esi + 0x438]
push eax
push 1
push ecx
push edx
call fcn.004e9c9b
add esp, 0x10
push 2
call fcn.004e99b8
add esp, 4
push eax
call fcn.004e9fd0
add esp, 4
test byte [0x5cd00c], 1
je 0x414469
call fcn.004139e0
test al, al
je 0x414469
mov eax, dword [esi + 0x448]
cmp dword [esi + 0x44c], 0xf
jbe 0x41444f
mov ecx, dword [esi + 0x438]
jmp 0x414455
lea ecx, [esi + 0x438]
push 0
lea edx, [esi + 0x30]
push edx
push eax
push ecx
push dword [0x5d87cc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi], 3
jne 0x41467e
mov ecx, dword [0x5d8804]
test ecx, ecx
je 0x4144a0
mov eax, dword [esi + 0x448]
cmp dword [esi + 0x44c], 0xf
jbe 0x414493
mov edx, dword [esi + 0x438]
jmp 0x414499
lea edx, [esi + 0x438]
push eax
push edx
call fcn.0041cf70
cmp dword [esi + 0x44c], 0xf
mov dword [esi + 0x30], 0xbedead01
mov dword [esi + 0x434], 0x5050dead
jbe 0x4144c2
mov eax, dword [esi + 0x438]
jmp 0x4144c8
lea eax, [esi + 0x438]
lea ecx, [esi + 0x34]
push 0x400
push eax
push ecx
call fcn.004138d0
add esp, 0xc
lea eax, [esi + 0x30]
push eax
call fcn.0040d920
add esp, 4
mov eax, dword [0x5d87b8]
test eax, eax
je 0x414746
mov eax, dword [0x5d87b8]
cmp eax, 1
ja 0x41455b
push 0x5d87b8
call fcn.00425000
add esp, 4
test al, al
je 0x414556
mov dword [0x5d87c0], 0
mov dword [0x5d87bc], 0
mov dword [0x5d87c8], 0
mov dword [0x5d87c4], 0
push 0x5d87b8
push 0
push 0x5d87bc
push 0x5d87b8
call fcn.004250b0
add esp, 0x10
mov eax, 0x5d87bc
jmp 0x41455b
mov eax, dword [0x5d87b8]
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x414746
mov eax, dword [0x5d87b8]
cmp eax, 1
ja 0x4145cf
push 0x5d87b8
call fcn.00425000
add esp, 4
test al, al
je 0x4145ca
mov dword [0x5d87c0], 0
mov dword [0x5d87bc], 0
mov dword [0x5d87c8], 0
mov dword [0x5d87c4], 0
push 0x5d87b8
push 0
push 0x5d87bc
push 0x5d87b8
call fcn.004250b0
add esp, 0x10
mov eax, 0x5d87bc
jmp 0x4145cf
mov eax, dword [0x5d87b8]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 4]
test edx, edx
cmove edx, ecx
dec edx
cmp ecx, edx
jb 0x41474b
shl edx, 2
lea ecx, [esi + 0x1c]
add edx, dword [eax]
push edx
call fcn.00423af0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x414676
cmp dword [esi + 0x44c], 0xf
jbe 0x414609
mov ecx, dword [esi + 0x438]
jmp 0x41460f
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 0x41462d
push edx
call fcn.004e49f0
add esp, 4
mov dword [esi + 4], eax
jmp 0x414634
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.00423ad0
mov eax, dword [esi + 0x44c]
cmp eax, 0x10
jb 0x4146bc
mov ecx, dword [esi + 0x438]
lea ebx, [eax + 1]
cmp ebx, 0x1000
jb 0x4146b2
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x414750
add eax, 0x24
mov ecx, edx
mov ebx, eax
push ebx
push ecx
call fcn.004dd465
add esp, 8
lea ecx, [edi + 0xac]
call fcn.00424d10
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.00415600
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 0x414722
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x414719
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x414719
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push ebx
call fcn.004ddd6a
add esp, 4
mov dword [edi], vtable.std::ios_base.0
push edi
call fcn.004c9f45
add esp, 4
mov ecx, dword [esi + 0x450]
xor ecx, ebp
call fcn.004dd9ae
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
int3
int3
call fcn.004e44e8
int3