Function at 0x425120
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, 0x830
mov esi, ecx
mov eax, dword [0x4b731c]
xor eax, ebp
mov dword [esp + 0x828], eax
mov dword [ecx], 0x49e858
lea edi, [ecx + 8]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
mov ecx, 0xffffffff
test byte [esi + eax + 0x18], 5
jne 0x42517d
mov ecx, dword [edi + eax + 0x18]
mov eax, dword [ecx]
sub esp, 0x14
movaps xmm0, xmmword [0x49bdc0]
movups xmmword [esp + 4], xmm0
lea edx, [esp + 0x4c]
mov dword [esp], edx
call dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
cmp dword [esi + 4], 3
mov dword [esp + 0x18], edi
jne 0x425307
call fcn.0042d990
test al, al
jne 0x425307
lea ebx, [esp + 0x43c]
push 0x3ec
push 0xff
push ebx
call fcn.004773d0
add esp, 0xc
mov ecx, ebx
call fcn.0042d9c0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
lea edi, [esp + 0x38]
push edi
call fcn.0040612a
mov ecx, edi
push 0x4ba198
call fcn.00418d68
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov ebx, eax
mov ecx, edi
call fcn.004099b0
movsx eax, bl
lea ecx, [esi + 8]
push eax
call fcn.00407520
lea ecx, [esi + 8]
call fcn.00406780
lea ecx, [esp + 0x43c]
lea eax, [esi + 8]
push eax
call fcn.0042da20
push 0x3f8
push 0xff
push edi
call fcn.004773d0
add esp, 0xc
mov ecx, edi
call fcn.0042da60
mov ecx, edi
lea edi, [esi + 8]
call fcn.0042db30
test al, al
jne 0x425242
lea ecx, [esp + 0x38]
push edi
call fcn.0042db40
call fcn.0042dc50
test eax, eax
je 0x4252fe
mov ebx, eax
cmp dword [eax + 0x38], 0
je 0x4252fe
push 0x1d
push str.IPC_message_handler_context:
push edi
call fcn.0040132c
add esp, 0xc
mov dword [esp + 8], eax
lea edi, [esp + 0x24]
push dword [ebx + 0x38]
push str.0x_08X
push edi
call fcn.0042e0f0
add esp, 0xc
movzx eax, byte [esp + 0x2f]
test al, al
jns 0x425295
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
push eax
push edi
push dword [esp + 0x10]
call fcn.0040132c
add esp, 0xc
mov edi, eax
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add ecx, edi
lea ebx, [esp + 0x30]
push ebx
call fcn.0040612a
mov ecx, ebx
push 0x4ba198
call fcn.00418d68
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov ebx, eax
lea ecx, [esp + 0x30]
call fcn.004099b0
movsx eax, bl
mov ecx, edi
push eax
call fcn.00407520
mov ecx, edi
call fcn.00406780
cmp byte [esp + 0x2f], 0
jns 0x4252fb
push dword [esp + 0x24]
call fcn.00473386
add esp, 4
lea edi, [esi + 8]
push edi
call fcn.0042e5d0
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, edi
mov dword [esp + 8], esi
lea esi, [esp + 0x38]
push esi
call fcn.0040612a
mov ecx, esi
push 0x4ba198
call fcn.00418d68
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov ebx, eax
mov ecx, esi
mov esi, dword [esp + 8]
call fcn.004099b0
movsx eax, bl
mov ecx, edi
push eax
call fcn.00407520
mov ecx, edi
call fcn.00406780
mov dword [esp + 0x43c], 0xffffffff
mov dword [esp + 0x440], 0xffffffff
mov dword [esp + 0x444], 0xffffffff
lea ecx, [esi + 0xc]
lea ebx, [esp + 0x43c]
mov dword [esp + 0x1c], ecx
push ebx
call fcn.00407846
test byte [0x4b76d0], 0x19
jne 0x425717
mov eax, dword [0x4ba880]
test eax, eax
je 0x4253bf
push ebx
push dword [esi + 0x90]
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 4]
call eax
add esp, 0x14
test al, al
jne 0x425555
mov eax, dword [0x4b72f0]
test al, 2
je 0x4253e5
cmp byte [esp + 0x447], 0
jns 0x4253d9
mov ebx, dword [esp + 0x43c]
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x4b72f0]
test al, 4
jne 0x4253f4
cmp dword [esi + 4], 2
jl 0x425444
cmp eax, 1
ja 0x425444
push 2
call fcn.00477fdf
add esp, 4
movzx ecx, byte [esp + 0x447]
test cl, cl
cmovs ecx, dword [esp + 0x440]
lea edx, [esp + 0x43c]
cmovs edx, dword [esp + 0x43c]
push eax
push 1
push ecx
push edx
call fcn.004888cd
add esp, 0x10
push 2
call fcn.00477fdf
add esp, 4
push eax
call fcn.0048847b
add esp, 4
mov eax, dword [0x4b72f0]
test al, 1
je 0x42548f
call fcn.00424a30
test al, al
je 0x42548f
mov dword [esp + 0x38], 0xffffffff
movzx eax, byte [esp + 0x447]
test al, al
cmovs eax, dword [esp + 0x440]
lea ecx, [esp + 0x43c]
cmovs ecx, dword [esp + 0x43c]
push 0
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
push dword [0x4ba88c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 4], 3
jne 0x425555
mov ecx, dword [0x4ba920]
test ecx, ecx
je 0x4254cd
movzx eax, byte [esp + 0x447]
test al, al
jns 0x4254bf
mov edx, dword [esp + 0x43c]
mov eax, dword [esp + 0x440]
jmp 0x4254c6
lea edx, [esp + 0x43c]
push eax
push edx
call fcn.0042feb0
push 0x400
push 0xff
lea eax, [esp + 0x40]
push eax
call fcn.004773d0
add esp, 0xc
cmp byte [esp + 0x447], 0
jns 0x4254f7
mov eax, dword [esp + 0x43c]
jmp 0x4254fe
lea eax, [esp + 0x43c]
push 0x400
push eax
lea esi, [esp + 0x40]
push esi
call fcn.0042c1a0
add esp, 0xc
push esi
call fcn.00401800
add esp, 4
mov eax, dword [0x4ba8a0]
mov ecx, dword [0x4ba8e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42573a
mov eax, dword [0x4ba898]
cmp eax, dword [0x4ba89c]
mov esi, dword [esp + 8]
jne 0x4255d5
call fcn.0042d9a0
cmp byte [esp + 0x447], 0
jns 0x42556e
push dword [esp + 0x43c]
call fcn.00473386
add esp, 4
lea ecx, [esi + 0x9c]
call fcn.0042d3a0
lea edi, [esi + 0x40]
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], vtable.std::__1::basic_ostringstream_char__struct_std::__1::char_traits_char___class_std::__1::allocator_char__.0
mov dword [esi + 0xc], vtable.std::__1::basic_stringbuf_char__struct_std::__1::char_traits_char___class_std::__1::allocator_char__.0
cmp byte [esi + 0x37], 0
jns 0x4255a6
mov eax, dword [esp + 0x18]
push dword [eax + 0x24]
call fcn.00473386
add esp, 4
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00406406
mov ecx, esi
call fcn.00401800
mov ecx, edi
call fcn.004063fc
mov ecx, dword [esp + 0x828]
xor ecx, ebp
call fcn.004733c1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [0x4ba8a0]
mov ecx, dword [0x4ba8e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x425770
mov eax, dword [0x4ba89c]
test eax, eax
jne 0x42560c
mov eax, dword [0x4ba894]
add eax, 0xffffffff
mov ecx, 0x4ba890
push eax
call fcn.00425c80
lea ecx, [esp + 0x20]
push eax
call fcn.0042d260
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4256fb
mov dl, byte [esp + 0x447]
test dl, dl
mov edi, dword [esp + 0x43c]
lea ebx, [esp + 0x43c]
mov eax, ebx
cmovs eax, edi
add eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
je 0x42566b
push eax
mov dword [esp + 0x10], ecx
mov byte [esp + 0xb], dl
call fcn.00489d00
add esp, 4
mov edx, edi
jmp 0x4256ae
lea edi, [esp + 0x24]
push 0x49b320
push 0x7c
push 0x49e73c
push edi
call fcn.0041ff70
add esp, 0x10
mov ecx, edi
call fcn.0041ffe0
mov ecx, edi
call fcn.0041fff0
mov al, byte [esp + 0x447]
mov byte [esp + 7], al
mov edx, dword [esp + 0x43c]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x90]
mov edi, dword [esp + 0x10]
sub edi, ecx
cmp byte [esp + 7], 0
cmovs ebx, edx
add ebx, ecx
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x98]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
lea edi, [esp + 0x24]
push eax
push edi
push edx
push ecx
mov eax, dword [esp + 0x1c]
push eax
call dword [eax + 4]
add esp, 0x14
lea ecx, [esp + 0x20]
call fcn.0042d240
cmp byte [esp + 0x447], 0
jns 0x42556e
jmp 0x42555f
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
mov ecx, str.LogMessage
xor edx, edx
lea eax, [esp + 0x38]
push eax
push 0
call fcn.00425d10
add esp, 8
jmp 0x425393
push 0x4ba8a0
call fcn.00473407
add esp, 4
cmp dword [0x4ba8a0], 0xffffffff
jne 0x42553b
xorps xmm0, xmm0
movups xmmword [0x4ba890], xmm0
push 0x4ba8a0
call fcn.0047347d
add esp, 4
jmp 0x42553b
push 0x4ba8a0
call fcn.00473407
add esp, 4
cmp dword [0x4ba8a0], 0xffffffff
jne 0x4255fe
xorps xmm0, xmm0
movups xmmword [0x4ba890], xmm0
push 0x4ba8a0
call fcn.0047347d
add esp, 4
jmp 0x4255fe