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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x828
mov edi, ecx
mov eax, dword [0x5cc440]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0x576330
movaps xmm0, xmmword [0x574b00]
movups xmmword [ebp - 0x814], xmm0
movsd xmm0, qword [0x574ae0]
movsd qword [ebp - 0x804], xmm0
mov byte [ebp - 0x814], 0
mov eax, dword [ecx + 0x50]
mov ecx, eax
and ecx, 0x22
cmp ecx, 2
je 0x41e456
mov ecx, dword [edi + 0x34]
mov esi, dword [ecx]
test esi, esi
je 0x41e456
lea eax, [edi + 0x24]
mov ecx, dword [edi + 0x4c]
cmp esi, ecx
cmovb esi, ecx
jmp 0x41e475
xor ebx, ebx
test al, 4
jne 0x41e50c
mov eax, dword [edi + 0x30]
mov esi, dword [eax]
test esi, esi
je 0x41e50c
lea eax, [edi + 0x20]
mov ecx, dword [edi + 0x40]
add esi, dword [ecx]
mov eax, dword [eax]
mov eax, dword [eax]
test eax, eax
je 0x41e4a5
sub esi, eax
cmp esi, 0xf
jbe 0x41e4a9
sub esp, 0xc
mov cl, byte [ebp - 0x3fc]
mov byte [esp + 4], cl
mov dword [esp + 8], eax
mov dword [esp], esi
lea ecx, [ebp - 0x814]
call fcn.00407350
jmp 0x41e4c8
xor ebx, ebx
jmp 0x41e50c
mov dword [ebp - 0x804], esi
lea ecx, [ebp - 0x814]
push esi
push eax
push ecx
call fcn.00504b50
add esp, 0xc
mov byte [ebp + esi - 0x814], 0
mov ebx, dword [ebp - 0x804]
mov eax, dword [ebp - 0x800]
cmp eax, 0x10
jb 0x41e50c
mov ecx, dword [ebp - 0x814]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41e502
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41ed25
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00503276
add esp, 8
mov dword [ebp - 0x830], ebx
lea esi, [edi + 0x10]
mov dword [ebp - 0x828], edi
cmp dword [edi + 8], 3
mov dword [ebp - 0x824], esi
jne 0x41e776
call fcn.00433d80
test al, al
jne 0x41e776
lea edi, [ebp - 0x3fc]
push 0x3ec
push 0xff
push edi
call fcn.005050d0
add esp, 0xc
mov ecx, edi
call fcn.00433d90
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [esi + eax + 0x30]
mov edi, dword [eax + 4]
mov dword [ebp - 0x810], edi
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x57044c]
mov ecx, edi
call ebx
lea eax, [ebp - 0x814]
push eax
call fcn.0040e36f
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x57044c]
mov ecx, edi
push 0xa
call ebx
mov byte [ebp - 0x82c], al
mov edi, dword [ebp - 0x810]
test edi, edi
je 0x41e5d8
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x57044c]
mov ecx, edi
call ebx
test eax, eax
je 0x41e5d8
mov ebx, eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x57044c]
mov ecx, ebx
push 1
call edi
movsx eax, byte [ebp - 0x82c]
mov ecx, esi
push eax
call fcn.0041fc50
mov ecx, esi
call fcn.0044de61
lea ecx, [ebp - 0x3fc]
push esi
call fcn.00433df0
push 0x3f8
push 0xff
lea edi, [ebp - 0x814]
push edi
call fcn.005050d0
add esp, 0xc
mov ecx, edi
call fcn.00433e30
mov ecx, edi
call fcn.00433ef0
test al, al
jne 0x41e631
lea ecx, [ebp - 0x814]
push esi
call fcn.00433f00
call fcn.004340a0
test eax, eax
je 0x41e76d
mov ebx, eax
cmp dword [eax + 0x44], 0
je 0x41e76d
push str.IPC_message_handler_context:
push esi
call fcn.0044a79b
add esp, 8
mov edi, eax
lea esi, [ebp - 0x414]
push dword [ebx + 0x44]
push str.0x_08X
push esi
call fcn.0041a600
add esp, 0xc
mov eax, dword [ebp - 0x404]
cmp dword [ebp - 0x400], 0x10
jb 0x41e686
mov esi, dword [ebp - 0x414]
push eax
push esi
push edi
call fcn.00416f90
add esp, 0xc
mov esi, eax
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [esi + eax + 0x30]
mov edi, dword [eax + 4]
mov dword [ebp - 0x818], edi
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x57044c]
mov ecx, edi
call ebx
lea eax, [ebp - 0x81c]
push eax
call fcn.0040e36f
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x57044c]
mov ecx, edi
push 0xa
call ebx
mov byte [ebp - 0x82c], al
mov edi, dword [ebp - 0x818]
test edi, edi
je 0x41e713
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x57044c]
mov ecx, edi
call ebx
test eax, eax
je 0x41e713
mov ebx, eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x57044c]
mov ecx, ebx
push 1
call edi
movsx eax, byte [ebp - 0x82c]
mov ecx, esi
push eax
call fcn.0041fc50
mov ecx, esi
call fcn.0044de61
mov eax, dword [ebp - 0x400]
cmp eax, 0x10
jb 0x41e767
mov ecx, dword [ebp - 0x414]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41e75d
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41ed25
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00503276
add esp, 8
mov esi, dword [ebp - 0x824]
push esi
call fcn.0041c7f0
add esp, 4
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [esi + eax + 0x30]
mov edi, dword [eax + 4]
mov dword [ebp - 0x810], edi
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x57044c]
mov ecx, edi
call ebx
lea eax, [ebp - 0x814]
push eax
call fcn.0040e36f
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x57044c]
mov ecx, edi
push 0xa
call ebx
mov ebx, eax
mov edi, dword [ebp - 0x810]
test edi, edi
je 0x41e7f2
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x57044c]
mov ecx, edi
call esi
test eax, eax
je 0x41e7f2
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [0x57044c]
mov ecx, edi
push 1
call esi
movsx eax, bl
mov esi, dword [ebp - 0x824]
mov ecx, esi
push eax
call fcn.0041fc50
mov ecx, esi
call fcn.0044de61
movaps xmm0, xmmword [0x574b00]
movups xmmword [ebp - 0x3fc], xmm0
movsd xmm0, qword [0x574ae0]
movsd qword [ebp - 0x3ec], xmm0
mov byte [ebp - 0x3fc], 0
mov edi, dword [ebp - 0x828]
mov eax, dword [edi + 0x50]
mov ecx, eax
and ecx, 0x22
cmp ecx, 2
je 0x41e858
mov ecx, dword [edi + 0x34]
mov esi, dword [ecx]
test esi, esi
je 0x41e858
lea eax, [edi + 0x24]
mov ecx, dword [edi + 0x4c]
cmp esi, ecx
cmovb esi, ecx
jmp 0x41e86d
test al, 4
jne 0x41e8bc
mov eax, dword [edi + 0x30]
mov esi, dword [eax]
test esi, esi
je 0x41e8bc
lea eax, [edi + 0x20]
mov ecx, dword [edi + 0x40]
add esi, dword [ecx]
mov eax, dword [eax]
mov eax, dword [eax]
test eax, eax
je 0x41e8bc
sub esi, eax
cmp esi, 0xf
jbe 0x41e89d
sub esp, 0xc
mov cl, byte [ebp - 0x814]
mov byte [esp + 4], cl
mov dword [esp + 8], eax
mov dword [esp], esi
lea ecx, [ebp - 0x3fc]
call fcn.00407350
jmp 0x41e8bc
mov dword [ebp - 0x3ec], esi
lea ecx, [ebp - 0x3fc]
push esi
push eax
push ecx
call fcn.00504b50
add esp, 0xc
mov byte [ebp + esi - 0x3fc], 0
mov ecx, dword [0x5d7e3c]
test ecx, ecx
je 0x41e91c
mov eax, dword [edi + 8]
mov dword [ebp - 0x824], eax
mov eax, dword [ebp - 0x828]
mov edi, dword [eax + 0xa8]
mov eax, dword [ebp - 0x828]
mov ebx, dword [eax + 0xb0]
mov eax, dword [ebp - 0x828]
mov esi, dword [eax + 0xac]
call dword [0x57044c]
lea eax, [ebp - 0x3fc]
push eax
push edi
mov edi, dword [ebp - 0x828]
push ebx
push esi
push dword [ebp - 0x824]
call ecx
add esp, 0x14
test al, al
jne 0x41ec3d
mov eax, dword [0x5cc030]
test al, 2
je 0x41e948
cmp dword [ebp - 0x3e8], 0x10
jb 0x41e936
mov eax, dword [ebp - 0x3fc]
jmp 0x41e93c
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x5cc030]
test al, 4
jne 0x41e957
cmp dword [edi + 8], 2
jl 0x41e9a2
cmp eax, 1
ja 0x41e9a2
mov esi, dword [ebp - 0x3ec]
cmp dword [ebp - 0x3e8], 0x10
jb 0x41e972
mov edi, dword [ebp - 0x3fc]
test esi, esi
jne 0x41e97c
jmp 0x41e9a2
lea edi, [ebp - 0x3fc]
test esi, esi
je 0x41e9a2
xor ebx, ebx
nop
mov eax, esi
sub eax, ebx
lea ecx, [edi + ebx]
push eax
push ecx
push 2
call fcn.0050f989
add esp, 0xc
test eax, eax
js 0x41e99d
add ebx, eax
cmp ebx, esi
jb 0x41e980
mov eax, dword [0x5cc030]
test al, 1
mov edi, dword [ebp - 0x828]
je 0x41e9f3
call fcn.0041d9c0
test al, al
je 0x41e9f3
mov dword [ebp - 0x814], 0xffffffff
mov eax, dword [ebp - 0x3ec]
cmp dword [ebp - 0x3e8], 0x10
jb 0x41e9d6
mov ecx, dword [ebp - 0x3fc]
jmp 0x41e9dc
lea ecx, [ebp - 0x3fc]
lea edx, [ebp - 0x814]
push 0
push edx
push eax
push ecx
push dword [0x5d7e48]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi + 8], 3
jne 0x41ec3d
mov ecx, dword [0x5d7e20]
test ecx, ecx
lea esi, [ebp - 0x814]
je 0x41ea31
mov eax, dword [ebp - 0x3ec]
cmp dword [ebp - 0x3e8], 0x10
jb 0x41ea24
mov edx, dword [ebp - 0x3fc]
jmp 0x41ea2a
lea edx, [ebp - 0x3fc]
push eax
push edx
call fcn.0041d510
push 0x400
push 0xff
push esi
call fcn.005050d0
add esp, 0xc
cmp dword [ebp - 0x3e8], 0x10
jb 0x41ea55
mov eax, dword [ebp - 0x3fc]
jmp 0x41ea5b
lea eax, [ebp - 0x3fc]
push 0x400
push eax
push esi
call fcn.0042e200
add esp, 0xc
push esi
call fcn.00412690
add esp, 4
mov eax, dword [0x5d7e60]
mov ecx, dword [0x5da474]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x41ed2a
mov eax, dword [0x5d7e58]
cmp eax, dword [0x5d7e5c]
je 0x41edbe
mov dword [ebp - 0x820], 0xffffffff
mov eax, dword [0x5d7e60]
mov ecx, dword [0x5da474]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x41ed74
mov eax, dword [0x5d7e5c]
mov dword [ebp - 0x414], 0x5d7e50
mov dword [ebp - 0x410], eax
test eax, eax
jne 0x41eaf2
mov eax, dword [ebp - 0x414]
mov eax, dword [eax + 4]
dec eax
mov dword [ebp - 0x410], eax
mov ecx, dword [ebp - 0x414]
push eax
call fcn.0041fbc0
lea ecx, [ebp - 0x820]
push eax
call fcn.0042d550
mov eax, dword [ebp - 0x820]
test eax, eax
je 0x41ec32
mov ecx, dword [ebp - 0x3fc]
mov edx, dword [ebp - 0x3e8]
cmp edx, 0x10
lea ebx, [ebp - 0x3fc]
mov edi, ebx
cmovae edi, ecx
add edi, dword [ebp - 0x830]
je 0x41eb5e
push edi
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x824], ecx
mov dword [ebp - 0x834], edx
call fcn.0050a930
add esp, 4
jmp 0x41ebad
lea esi, [ebp - 0x414]
push 0x574bc4
push 0x7c
push str....._base_strings_string_piece.h
push esi
call fcn.00407bc0
add esp, 0x10
mov ecx, esi
call fcn.00407cf0
mov ecx, esi
call fcn.00407d00
mov eax, dword [ebp - 0x3fc]
mov dword [ebp - 0x824], eax
mov eax, dword [ebp - 0x3e8]
mov dword [ebp - 0x834], eax
xor eax, eax
mov ecx, dword [ebp - 0x820]
mov dword [ebp - 0x82c], ecx
mov edx, dword [ebp - 0x828]
mov ecx, dword [edx + 0xa8]
mov esi, dword [ebp - 0x830]
sub esi, ecx
cmp dword [ebp - 0x834], 0x10
cmovae ebx, dword [ebp - 0x824]
add ebx, ecx
mov ecx, dword [edx + 0xac]
mov dword [ebp - 0x824], ecx
mov ecx, dword [edx + 0xb0]
mov dword [ebp - 0x830], ecx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x410], esi
mov dword [ebp - 0x81c], edi
mov edi, edx
mov dword [ebp - 0x818], eax
mov esi, dword [ebp - 0x82c]
mov ecx, dword [esi + 4]
call dword [0x57044c]
lea eax, [ebp - 0x81c]
lea edx, [ebp - 0x414]
push eax
push edx
push dword [ebp - 0x830]
push dword [ebp - 0x824]
push esi
call ecx
add esp, 0x14
lea ecx, [ebp - 0x820]
call fcn.0042d520
mov eax, dword [ebp - 0x3e8]
cmp eax, 0x10
jb 0x41ec7b
mov ecx, dword [ebp - 0x3fc]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41ec71
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41ed25
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00503276
add esp, 8
lea ecx, [edi + 0xb4]
call fcn.00430bf0
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [edi + eax + 0x10], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x50]
mov dword [edi + eax + 0xc], ecx
lea ecx, [edi + 0x14]
mov dword [edi + 0x14], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.00412570
mov dword [edi + 0x14], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov ebx, dword [edi + 0x48]
test ebx, ebx
je 0x41ecfd
mov edi, dword [ebx + 4]
test edi, edi
je 0x41ecee
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x57044c]
mov ecx, edi
call esi
test eax, eax
je 0x41ecee
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [0x57044c]
mov ecx, edi
push 1
call esi
push ebx
call fcn.0050395a
add esp, 4
mov edi, dword [ebp - 0x828]
mov dword [edi + 0x60], vtable.std::ios_base.0
add edi, 0x60
push edi
call fcn.004ee9f1
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005035b5
add esp, 0x828
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.005099a6
push 0x5d7e60
call fcn.00503551
add esp, 4
cmp dword [0x5d7e60], 0xffffffff
jne 0x41ea94
mov dword [0x5d7e50], 0
xorps xmm0, xmm0
movlps qword [0x5d7e54], xmm0
mov dword [0x5d7e5c], 0
push 0x5d7e60
call fcn.00503500
add esp, 4
jmp 0x41ea94
push 0x5d7e60
call fcn.00503551
add esp, 4
cmp dword [0x5d7e60], 0xffffffff
jne 0x41ead0
mov dword [0x5d7e50], 0
xorps xmm0, xmm0
movlps qword [0x5d7e54], xmm0
mov dword [0x5d7e5c], 0
push 0x5d7e60
call fcn.00503500
add esp, 4
jmp 0x41ead0
int3