Function at 0x41b100
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 [0x5df440]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0x588cb0
movaps xmm0, xmmword [0x5874e0]
movups xmmword [ebp - 0x814], xmm0
movsd xmm0, qword [0x5874c0]
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 0x41b166
mov ecx, dword [edi + 0x34]
mov esi, dword [ecx]
test esi, esi
je 0x41b166
lea eax, [edi + 0x24]
mov ecx, dword [edi + 0x4c]
cmp esi, ecx
cmovb esi, ecx
jmp 0x41b185
xor ebx, ebx
test al, 4
jne 0x41b21c
mov eax, dword [edi + 0x30]
mov esi, dword [eax]
test esi, esi
je 0x41b21c
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 0x41b1b5
sub esi, eax
cmp esi, 0xf
jbe 0x41b1b9
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 0x41b1d8
xor ebx, ebx
jmp 0x41b21c
mov dword [ebp - 0x804], esi
lea ecx, [ebp - 0x814]
push esi
push eax
push ecx
call fcn.00516970
add esp, 0xc
mov byte [ebp + esi - 0x814], 0
mov ebx, dword [ebp - 0x804]
mov eax, dword [ebp - 0x800]
cmp eax, 0x10
jb 0x41b21c
mov ecx, dword [ebp - 0x814]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41b212
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41ba35
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00513968
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 0x41b486
call fcn.004309f0
test al, al
jne 0x41b486
lea edi, [ebp - 0x3fc]
push 0x3ec
push 0xff
push edi
call fcn.00516ef0
add esp, 0xc
mov ecx, edi
call fcn.00430a00
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 [0x581450]
mov ecx, edi
call ebx
lea eax, [ebp - 0x814]
push eax
call fcn.0044c95e
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x581450]
mov ecx, edi
push 0xa
call ebx
mov byte [ebp - 0x82c], al
mov edi, dword [ebp - 0x810]
test edi, edi
je 0x41b2e8
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x581450]
mov ecx, edi
call ebx
test eax, eax
je 0x41b2e8
mov ebx, eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x581450]
mov ecx, ebx
push 1
call edi
movsx eax, byte [ebp - 0x82c]
mov ecx, esi
push eax
call fcn.0041c960
mov ecx, esi
call fcn.00456c83
lea ecx, [ebp - 0x3fc]
push esi
call fcn.00430a60
push 0x3f8
push 0xff
lea edi, [ebp - 0x814]
push edi
call fcn.00516ef0
add esp, 0xc
mov ecx, edi
call fcn.00430aa0
mov ecx, edi
call fcn.00430b60
test al, al
jne 0x41b341
lea ecx, [ebp - 0x814]
push esi
call fcn.00430b70
call fcn.00430d10
test eax, eax
je 0x41b47d
mov ebx, eax
cmp dword [eax + 0x44], 0
je 0x41b47d
push str.IPC_message_handler_context:
push esi
call fcn.004474fc
add esp, 8
mov edi, eax
lea esi, [ebp - 0x414]
push dword [ebx + 0x44]
push str.0x_08X
push esi
call fcn.00417310
add esp, 0xc
mov eax, dword [ebp - 0x404]
cmp dword [ebp - 0x400], 0x10
jb 0x41b396
mov esi, dword [ebp - 0x414]
push eax
push esi
push edi
call fcn.00413ca0
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 [0x581450]
mov ecx, edi
call ebx
lea eax, [ebp - 0x81c]
push eax
call fcn.0044c95e
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x581450]
mov ecx, edi
push 0xa
call ebx
mov byte [ebp - 0x82c], al
mov edi, dword [ebp - 0x818]
test edi, edi
je 0x41b423
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x581450]
mov ecx, edi
call ebx
test eax, eax
je 0x41b423
mov ebx, eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x581450]
mov ecx, ebx
push 1
call edi
movsx eax, byte [ebp - 0x82c]
mov ecx, esi
push eax
call fcn.0041c960
mov ecx, esi
call fcn.00456c83
mov eax, dword [ebp - 0x400]
cmp eax, 0x10
jb 0x41b477
mov ecx, dword [ebp - 0x414]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41b46d
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41ba35
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00513968
add esp, 8
mov esi, dword [ebp - 0x824]
push esi
call fcn.00419500
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 [0x581450]
mov ecx, edi
call ebx
lea eax, [ebp - 0x814]
push eax
call fcn.0044c95e
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x581450]
mov ecx, edi
push 0xa
call ebx
mov ebx, eax
mov edi, dword [ebp - 0x810]
test edi, edi
je 0x41b502
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x581450]
mov ecx, edi
call esi
test eax, eax
je 0x41b502
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [0x581450]
mov ecx, edi
push 1
call esi
movsx eax, bl
mov esi, dword [ebp - 0x824]
mov ecx, esi
push eax
call fcn.0041c960
mov ecx, esi
call fcn.00456c83
movaps xmm0, xmmword [0x5874e0]
movups xmmword [ebp - 0x3fc], xmm0
movsd xmm0, qword [0x5874c0]
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 0x41b568
mov ecx, dword [edi + 0x34]
mov esi, dword [ecx]
test esi, esi
je 0x41b568
lea eax, [edi + 0x24]
mov ecx, dword [edi + 0x4c]
cmp esi, ecx
cmovb esi, ecx
jmp 0x41b57d
test al, 4
jne 0x41b5cc
mov eax, dword [edi + 0x30]
mov esi, dword [eax]
test esi, esi
je 0x41b5cc
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 0x41b5cc
sub esi, eax
cmp esi, 0xf
jbe 0x41b5ad
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 0x41b5cc
mov dword [ebp - 0x3ec], esi
lea ecx, [ebp - 0x3fc]
push esi
push eax
push ecx
call fcn.00516970
add esp, 0xc
mov byte [ebp + esi - 0x3fc], 0
mov ecx, dword [0x5eb07c]
test ecx, ecx
je 0x41b62c
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 [0x581450]
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 0x41b94d
mov eax, dword [0x5df030]
test al, 2
je 0x41b658
cmp dword [ebp - 0x3e8], 0x10
jb 0x41b646
mov eax, dword [ebp - 0x3fc]
jmp 0x41b64c
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x5df030]
test al, 4
jne 0x41b667
cmp dword [edi + 8], 2
jl 0x41b6b2
cmp eax, 1
ja 0x41b6b2
mov esi, dword [ebp - 0x3ec]
cmp dword [ebp - 0x3e8], 0x10
jb 0x41b682
mov edi, dword [ebp - 0x3fc]
test esi, esi
jne 0x41b68c
jmp 0x41b6b2
lea edi, [ebp - 0x3fc]
test esi, esi
je 0x41b6b2
xor ebx, ebx
nop
mov eax, esi
sub eax, ebx
lea ecx, [edi + ebx]
push eax
push ecx
push 2
call fcn.005200f6
add esp, 0xc
test eax, eax
js 0x41b6ad
add ebx, eax
cmp ebx, esi
jb 0x41b690
mov eax, dword [0x5df030]
test al, 1
mov edi, dword [ebp - 0x828]
je 0x41b703
call fcn.0041a6d0
test al, al
je 0x41b703
mov dword [ebp - 0x814], 0xffffffff
mov eax, dword [ebp - 0x3ec]
cmp dword [ebp - 0x3e8], 0x10
jb 0x41b6e6
mov ecx, dword [ebp - 0x3fc]
jmp 0x41b6ec
lea ecx, [ebp - 0x3fc]
lea edx, [ebp - 0x814]
push 0
push edx
push eax
push ecx
push dword [0x5eb088]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi + 8], 3
jne 0x41b94d
mov ecx, dword [0x5eb060]
test ecx, ecx
lea esi, [ebp - 0x814]
je 0x41b741
mov eax, dword [ebp - 0x3ec]
cmp dword [ebp - 0x3e8], 0x10
jb 0x41b734
mov edx, dword [ebp - 0x3fc]
jmp 0x41b73a
lea edx, [ebp - 0x3fc]
push eax
push edx
call fcn.0041a220
push 0x400
push 0xff
push esi
call fcn.00516ef0
add esp, 0xc
cmp dword [ebp - 0x3e8], 0x10
jb 0x41b765
mov eax, dword [ebp - 0x3fc]
jmp 0x41b76b
lea eax, [ebp - 0x3fc]
push 0x400
push eax
push esi
call fcn.0042af10
add esp, 0xc
push esi
call fcn.00411c40
add esp, 4
mov eax, dword [0x5eb0a0]
mov ecx, dword [0x5ed6c4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x41ba3a
mov eax, dword [0x5eb098]
cmp eax, dword [0x5eb09c]
je 0x41bace
mov dword [ebp - 0x820], 0xffffffff
mov eax, dword [0x5eb0a0]
mov ecx, dword [0x5ed6c4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x41ba84
mov eax, dword [0x5eb09c]
mov dword [ebp - 0x414], 0x5eb090
mov dword [ebp - 0x410], eax
test eax, eax
jne 0x41b802
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.0041c8d0
lea ecx, [ebp - 0x820]
push eax
call fcn.0042a260
mov eax, dword [ebp - 0x820]
test eax, eax
je 0x41b942
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 0x41b86e
push edi
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x824], ecx
mov dword [ebp - 0x834], edx
call fcn.0051a200
add esp, 4
jmp 0x41b8bd
lea esi, [ebp - 0x414]
push 0x5875a4
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 [0x581450]
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.0042a230
mov eax, dword [ebp - 0x3e8]
cmp eax, 0x10
jb 0x41b98b
mov ecx, dword [ebp - 0x3fc]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41b981
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41ba35
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00513968
add esp, 8
lea ecx, [edi + 0xb4]
call fcn.0042d860
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.004552a8
mov dword [edi + 0x14], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov ebx, dword [edi + 0x48]
test ebx, ebx
je 0x41ba0d
mov edi, dword [ebx + 4]
test edi, edi
je 0x41b9fe
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x581450]
mov ecx, edi
call esi
test eax, eax
je 0x41b9fe
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [0x581450]
mov ecx, edi
push 1
call esi
push ebx
call fcn.005141ea
add esp, 4
mov edi, dword [ebp - 0x828]
mov dword [edi + 0x60], vtable.std::ios_base.0
add edi, 0x60
push edi
call fcn.004ff601
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00513cac
add esp, 0x828
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0051a096
push 0x5eb0a0
call fcn.00513c48
add esp, 4
cmp dword [0x5eb0a0], 0xffffffff
jne 0x41b7a4
mov dword [0x5eb090], 0
xorps xmm0, xmm0
movlps qword [0x5eb094], xmm0
mov dword [0x5eb09c], 0
push 0x5eb0a0
call fcn.00513bf7
add esp, 4
jmp 0x41b7a4
push 0x5eb0a0
call fcn.00513c48
add esp, 4
cmp dword [0x5eb0a0], 0xffffffff
jne 0x41b7e0
mov dword [0x5eb090], 0
xorps xmm0, xmm0
movlps qword [0x5eb094], xmm0
mov dword [0x5eb09c], 0
push 0x5eb0a0
call fcn.00513bf7
add esp, 4
jmp 0x41b7e0
int3