Function at 0x41de90
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 [0x5ce440]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0x579ca0
movaps xmm0, xmmword [0x578470]
movups xmmword [ebp - 0x814], xmm0
movsd xmm0, qword [0x578450]
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 0x41def6
mov ecx, dword [edi + 0x34]
mov esi, dword [ecx]
test esi, esi
je 0x41def6
lea eax, [edi + 0x24]
mov ecx, dword [edi + 0x4c]
cmp esi, ecx
cmovb esi, ecx
jmp 0x41df15
xor ebx, ebx
test al, 4
jne 0x41dfac
mov eax, dword [edi + 0x30]
mov esi, dword [eax]
test esi, esi
je 0x41dfac
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 0x41df45
sub esi, eax
cmp esi, 0xf
jbe 0x41df49
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 0x41df68
xor ebx, ebx
jmp 0x41dfac
mov dword [ebp - 0x804], esi
lea ecx, [ebp - 0x814]
push esi
push eax
push ecx
call fcn.00507e70
add esp, 0xc
mov byte [ebp + esi - 0x814], 0
mov ebx, dword [ebp - 0x804]
mov eax, dword [ebp - 0x800]
cmp eax, 0x10
jb 0x41dfac
mov ecx, dword [ebp - 0x814]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41dfa2
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41e7c5
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00504e76
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 0x41e216
call fcn.00433820
test al, al
jne 0x41e216
lea edi, [ebp - 0x3fc]
push 0x3ec
push 0xff
push edi
call fcn.005083f0
add esp, 0xc
mov ecx, edi
call fcn.00433830
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 [0x57244c]
mov ecx, edi
call ebx
lea eax, [ebp - 0x814]
push eax
call fcn.0040e1bf
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x57244c]
mov ecx, edi
push 0xa
call ebx
mov byte [ebp - 0x82c], al
mov edi, dword [ebp - 0x810]
test edi, edi
je 0x41e078
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x57244c]
mov ecx, edi
call ebx
test eax, eax
je 0x41e078
mov ebx, eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x57244c]
mov ecx, ebx
push 1
call edi
movsx eax, byte [ebp - 0x82c]
mov ecx, esi
push eax
call fcn.0041f6f0
mov ecx, esi
call fcn.00457609
lea ecx, [ebp - 0x3fc]
push esi
call fcn.00433890
push 0x3f8
push 0xff
lea edi, [ebp - 0x814]
push edi
call fcn.005083f0
add esp, 0xc
mov ecx, edi
call fcn.004338d0
mov ecx, edi
call fcn.00433990
test al, al
jne 0x41e0d1
lea ecx, [ebp - 0x814]
push esi
call fcn.004339a0
call fcn.00433b40
test eax, eax
je 0x41e20d
mov ebx, eax
cmp dword [eax + 0x44], 0
je 0x41e20d
push str.IPC_message_handler_context:
push esi
call fcn.0044a30e
add esp, 8
mov edi, eax
lea esi, [ebp - 0x414]
push dword [ebx + 0x44]
push str.0x_08X
push esi
call fcn.0041a090
add esp, 0xc
mov eax, dword [ebp - 0x404]
cmp dword [ebp - 0x400], 0x10
jb 0x41e126
mov esi, dword [ebp - 0x414]
push eax
push esi
push edi
call fcn.00416a20
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 [0x57244c]
mov ecx, edi
call ebx
lea eax, [ebp - 0x81c]
push eax
call fcn.0040e1bf
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x57244c]
mov ecx, edi
push 0xa
call ebx
mov byte [ebp - 0x82c], al
mov edi, dword [ebp - 0x818]
test edi, edi
je 0x41e1b3
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x57244c]
mov ecx, edi
call ebx
test eax, eax
je 0x41e1b3
mov ebx, eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x57244c]
mov ecx, ebx
push 1
call edi
movsx eax, byte [ebp - 0x82c]
mov ecx, esi
push eax
call fcn.0041f6f0
mov ecx, esi
call fcn.00457609
mov eax, dword [ebp - 0x400]
cmp eax, 0x10
jb 0x41e207
mov ecx, dword [ebp - 0x414]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41e1fd
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41e7c5
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00504e76
add esp, 8
mov esi, dword [ebp - 0x824]
push esi
call fcn.0041c290
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 [0x57244c]
mov ecx, edi
call ebx
lea eax, [ebp - 0x814]
push eax
call fcn.0040e1bf
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x57244c]
mov ecx, edi
push 0xa
call ebx
mov ebx, eax
mov edi, dword [ebp - 0x810]
test edi, edi
je 0x41e292
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x57244c]
mov ecx, edi
call esi
test eax, eax
je 0x41e292
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [0x57244c]
mov ecx, edi
push 1
call esi
movsx eax, bl
mov esi, dword [ebp - 0x824]
mov ecx, esi
push eax
call fcn.0041f6f0
mov ecx, esi
call fcn.00457609
movaps xmm0, xmmword [0x578470]
movups xmmword [ebp - 0x3fc], xmm0
movsd xmm0, qword [0x578450]
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 0x41e2f8
mov ecx, dword [edi + 0x34]
mov esi, dword [ecx]
test esi, esi
je 0x41e2f8
lea eax, [edi + 0x24]
mov ecx, dword [edi + 0x4c]
cmp esi, ecx
cmovb esi, ecx
jmp 0x41e30d
test al, 4
jne 0x41e35c
mov eax, dword [edi + 0x30]
mov esi, dword [eax]
test esi, esi
je 0x41e35c
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 0x41e35c
sub esi, eax
cmp esi, 0xf
jbe 0x41e33d
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 0x41e35c
mov dword [ebp - 0x3ec], esi
lea ecx, [ebp - 0x3fc]
push esi
push eax
push ecx
call fcn.00507e70
add esp, 0xc
mov byte [ebp + esi - 0x3fc], 0
mov ecx, dword [0x5d9ee4]
test ecx, ecx
je 0x41e3bc
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 [0x57244c]
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 0x41e6dd
mov eax, dword [0x5ce030]
test al, 2
je 0x41e3e8
cmp dword [ebp - 0x3e8], 0x10
jb 0x41e3d6
mov eax, dword [ebp - 0x3fc]
jmp 0x41e3dc
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x5ce030]
test al, 4
jne 0x41e3f7
cmp dword [edi + 8], 2
jl 0x41e442
cmp eax, 1
ja 0x41e442
mov esi, dword [ebp - 0x3ec]
cmp dword [ebp - 0x3e8], 0x10
jb 0x41e412
mov edi, dword [ebp - 0x3fc]
test esi, esi
jne 0x41e41c
jmp 0x41e442
lea edi, [ebp - 0x3fc]
test esi, esi
je 0x41e442
xor ebx, ebx
nop
mov eax, esi
sub eax, ebx
lea ecx, [edi + ebx]
push eax
push ecx
push 2
call fcn.00511596
add esp, 0xc
test eax, eax
js 0x41e43d
add ebx, eax
cmp ebx, esi
jb 0x41e420
mov eax, dword [0x5ce030]
test al, 1
mov edi, dword [ebp - 0x828]
je 0x41e493
call fcn.0041d460
test al, al
je 0x41e493
mov dword [ebp - 0x814], 0xffffffff
mov eax, dword [ebp - 0x3ec]
cmp dword [ebp - 0x3e8], 0x10
jb 0x41e476
mov ecx, dword [ebp - 0x3fc]
jmp 0x41e47c
lea ecx, [ebp - 0x3fc]
lea edx, [ebp - 0x814]
push 0
push edx
push eax
push ecx
push dword [0x5d9ef0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi + 8], 3
jne 0x41e6dd
mov ecx, dword [0x5d9ec8]
test ecx, ecx
lea esi, [ebp - 0x814]
je 0x41e4d1
mov eax, dword [ebp - 0x3ec]
cmp dword [ebp - 0x3e8], 0x10
jb 0x41e4c4
mov edx, dword [ebp - 0x3fc]
jmp 0x41e4ca
lea edx, [ebp - 0x3fc]
push eax
push edx
call fcn.0041cfb0
push 0x400
push 0xff
push esi
call fcn.005083f0
add esp, 0xc
cmp dword [ebp - 0x3e8], 0x10
jb 0x41e4f5
mov eax, dword [ebp - 0x3fc]
jmp 0x41e4fb
lea eax, [ebp - 0x3fc]
push 0x400
push eax
push esi
call fcn.0042dca0
add esp, 0xc
push esi
call fcn.00412120
add esp, 4
mov eax, dword [0x5d9f08]
mov ecx, dword [0x5dc534]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x41e7ca
mov eax, dword [0x5d9f00]
cmp eax, dword [0x5d9f04]
je 0x41e85e
mov dword [ebp - 0x820], 0xffffffff
mov eax, dword [0x5d9f08]
mov ecx, dword [0x5dc534]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x41e814
mov eax, dword [0x5d9f04]
mov dword [ebp - 0x414], 0x5d9ef8
mov dword [ebp - 0x410], eax
test eax, eax
jne 0x41e592
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.0041f660
lea ecx, [ebp - 0x820]
push eax
call fcn.0042cff0
mov eax, dword [ebp - 0x820]
test eax, eax
je 0x41e6d2
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 0x41e5fe
push edi
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x824], ecx
mov dword [ebp - 0x834], edx
call fcn.0050b6a0
add esp, 4
jmp 0x41e64d
lea esi, [ebp - 0x414]
push 0x578534
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 [0x57244c]
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.0042cfc0
mov eax, dword [ebp - 0x3e8]
cmp eax, 0x10
jb 0x41e71b
mov ecx, dword [ebp - 0x3fc]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41e711
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41e7c5
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00504e76
add esp, 8
lea ecx, [edi + 0xb4]
call fcn.00430680
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.00412000
mov dword [edi + 0x14], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov ebx, dword [edi + 0x48]
test ebx, ebx
je 0x41e79d
mov edi, dword [ebx + 4]
test edi, edi
je 0x41e78e
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x57244c]
mov ecx, edi
call esi
test eax, eax
je 0x41e78e
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [0x57244c]
mov ecx, edi
push 1
call esi
push ebx
call fcn.0050578a
add esp, 4
mov edi, dword [ebp - 0x828]
mov dword [edi + 0x60], vtable.std::ios_base.0
add edi, 0x60
push edi
call fcn.004f0671
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005051b5
add esp, 0x828
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0050b58a
push 0x5d9f08
call fcn.00505151
add esp, 4
cmp dword [0x5d9f08], 0xffffffff
jne 0x41e534
mov dword [0x5d9ef8], 0
xorps xmm0, xmm0
movlps qword [0x5d9efc], xmm0
mov dword [0x5d9f04], 0
push 0x5d9f08
call fcn.00505100
add esp, 4
jmp 0x41e534
push 0x5d9f08
call fcn.00505151
add esp, 4
cmp dword [0x5d9f08], 0xffffffff
jne 0x41e570
mov dword [0x5d9ef8], 0
xorps xmm0, xmm0
movlps qword [0x5d9efc], xmm0
mov dword [0x5d9f04], 0
push 0x5d9f08
call fcn.00505100
add esp, 4
jmp 0x41e570
int3