Function at 0x460400
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 eax, dword [0x7a8498]
xor eax, ebp
mov dword [esp + 0x828], eax
mov dword [ecx], 0x732028
lea eax, [ecx + 8]
mov dword [esp + 8], eax
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
mov edx, 0xffffffff
mov dword [esp + 4], ecx
test byte [ecx + eax + 0x18], 5
jne 0x460473
mov ecx, dword [esp + 8]
mov ebx, dword [ecx + eax + 0x18]
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
sub esp, 0x14
movaps xmm0, xmmword [0x72ebf0]
movups xmmword [esp + 4], xmm0
lea eax, [esp + 0x4c]
mov dword [esp], eax
mov ecx, ebx
call edi
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 4]
cmp dword [eax + 4], 5
jne 0x460616
call fcn.004b5a60
test al, al
jne 0x460616
lea esi, [esp + 0x43c]
push 0x3ec
push 0xff
push esi
call fcn.006ccfc0
add esp, 0xc
mov ecx, esi
call fcn.004b5a90
mov edx, dword [esp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
lea esi, [esp + 0x38]
push esi
call fcn.00439eca
mov ecx, esi
push 0x7add60
call fcn.0044f3ea
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 0xa
call ebx
mov ebx, eax
mov ecx, esi
call fcn.0043dad0
movsx eax, bl
mov edi, dword [esp + 8]
mov ecx, edi
push eax
call fcn.0043b410
mov ecx, edi
call fcn.0043a530
lea ecx, [esp + 0x43c]
push edi
call fcn.004b5b20
push 0x3f8
push 0xff
push esi
call fcn.006ccfc0
add esp, 0xc
mov ecx, esi
call fcn.004b5b60
mov ecx, esi
call fcn.004b5c20
test al, al
jne 0x460547
lea ecx, [esp + 0x38]
push dword [esp + 8]
call fcn.004b5c30
call fcn.0046a0c0
test eax, eax
je 0x46060a
mov ebx, eax
cmp dword [eax + 0x38], 0
je 0x46060a
push 0x1d
push str.IPC_message_handler_context:
push dword [esp + 0x10]
call fcn.00402ac0
add esp, 0xc
mov esi, eax
lea edi, [esp + 0x24]
push dword [ebx + 0x38]
push str.0x_08X
push edi
call fcn.00468c80
add esp, 0xc
movzx eax, byte [esp + 0x2f]
test al, al
jns 0x46059b
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
push eax
push edi
push esi
call fcn.00402ac0
add esp, 0xc
mov esi, eax
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add ecx, esi
lea edi, [esp + 0x30]
push edi
call fcn.00439eca
mov ecx, edi
push 0x7add60
call fcn.0044f3ea
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 0xa
call ebx
mov ebx, eax
lea ecx, [esp + 0x30]
call fcn.0043dad0
movsx eax, bl
mov ecx, esi
push eax
call fcn.0043b410
mov ecx, esi
call fcn.0043a530
cmp byte [esp + 0x2f], 0
jns 0x46060a
push dword [esp + 0x24]
call fcn.006c90e6
add esp, 4
push dword [esp + 8]
call fcn.004b5dd0
add esp, 4
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 4]
mov esi, dword [esp + 8]
add ecx, esi
lea edi, [esp + 0x38]
push edi
call fcn.00439eca
mov ecx, edi
push 0x7add60
call fcn.0044f3ea
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 0xa
call ebx
mov ebx, eax
lea ecx, [esp + 0x38]
call fcn.0043dad0
movsx eax, bl
mov ecx, esi
push eax
call fcn.0043b410
mov ecx, esi
call fcn.0043a530
mov dword [esp + 0x43c], 0xffffffff
mov dword [esp + 0x440], 0xffffffff
mov dword [esp + 0x444], 0xffffffff
mov eax, dword [esp + 4]
lea edi, [eax + 0xc]
lea eax, [esp + 0x43c]
mov ecx, edi
mov dword [esp + 0x14], eax
push eax
call fcn.0043b760
test byte [0x7a7878], 0x19
jne 0x460ae0
mov ecx, dword [0x7ae488]
test ecx, ecx
je 0x46070c
mov esi, dword [esp + 4]
mov eax, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, esi
mov edx, dword [esi + 0x90]
mov dword [esp + 0xc], edx
mov ebx, dword [esi + 0x98]
mov esi, edi
mov edi, dword [eax + 0x94]
call dword [section..00cfg]
lea eax, [esp + 0x43c]
push eax
push dword [esp + 0x10]
push ebx
push edi
mov edi, esi
push dword [esp + 0x20]
call ecx
add esp, 0x14
test al, al
jne 0x4608ad
mov eax, dword [0x7ae480]
test al, 2
je 0x460739
cmp byte [esp + 0x447], 0
jns 0x46072a
mov eax, dword [esp + 0x43c]
mov dword [esp + 0x14], eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x7ae480]
test al, 4
jne 0x46074c
mov ecx, dword [esp + 4]
cmp dword [ecx + 4], 4
jl 0x46079c
cmp eax, 1
ja 0x46079c
push 2
call fcn.006ce01f
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.006e4d30
add esp, 0x10
push 2
call fcn.006ce01f
add esp, 4
push eax
call fcn.006e4293
add esp, 4
mov eax, dword [0x7ae480]
test al, 1
je 0x4607e7
call fcn.0045fcb0
test al, al
je 0x4607e7
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 [0x7ae490]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 4]
cmp dword [eax + 4], 5
jne 0x4608ad
mov ecx, dword [0x7ae468]
test ecx, ecx
je 0x460829
movzx eax, byte [esp + 0x447]
test al, al
jns 0x46081b
mov edx, dword [esp + 0x43c]
mov eax, dword [esp + 0x440]
jmp 0x460822
lea edx, [esp + 0x43c]
push eax
push edx
call fcn.0045cc40
push 0x400
push 0xff
lea eax, [esp + 0x40]
push eax
call fcn.006ccfc0
add esp, 0xc
cmp byte [esp + 0x447], 0
jns 0x460853
mov eax, dword [esp + 0x43c]
jmp 0x46085a
lea eax, [esp + 0x43c]
push 0x400
push eax
lea esi, [esp + 0x40]
push esi
call fcn.00468830
add esp, 0xc
push esi
call fcn.00405540
add esp, 4
mov eax, dword [0x7ae4a4]
mov ecx, dword [0x7bafb8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x14]
jg 0x460b0e
mov eax, dword [0x7ae49c]
cmp eax, dword [0x7ae4a0]
jne 0x46092d
call fcn.004b5ed0
cmp byte [esp + 0x447], 0
jns 0x4608c6
push dword [esp + 0x43c]
call fcn.006c90e6
add esp, 4
mov esi, dword [esp + 4]
lea ecx, [esi + 0x9c]
call fcn.004b5a00
lea ebx, [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 0x460902
mov eax, dword [esp + 8]
push dword [eax + 0x24]
call fcn.006c90e6
add esp, 4
mov ecx, edi
call fcn.0043a176
mov ecx, edi
call fcn.00405540
mov ecx, ebx
call fcn.0043a16c
mov ecx, dword [esp + 0x828]
xor ecx, ebp
call fcn.006c9121
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [0x7ae4a4]
mov ecx, dword [0x7bafb8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x14]
jg 0x460b44
mov eax, dword [0x7ae4a0]
test eax, eax
jne 0x460964
mov eax, dword [0x7ae498]
add eax, 0xffffffff
mov ecx, 0x7ae494
push eax
call fcn.0042c330
lea ecx, [esp + 0x20]
push eax
call fcn.00458c80
mov esi, dword [esp + 0x20]
test esi, esi
je 0x460ac4
mov dword [esp + 0x14], edi
mov al, byte [esp + 0x447]
test al, al
mov ecx, dword [esp + 0x43c]
lea edi, [esp + 0x43c]
mov ebx, edi
cmovs ebx, ecx
add ebx, dword [esp + 0x1c]
je 0x4609c7
push ebx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ecx
call fcn.006e65e0
add esp, 4
mov dword [esp + 0x18], eax
mov eax, esi
jmp 0x460a10
lea esi, [esp + 0x24]
push 0x6fb826
push 0x7d
push 0x731e24
push esi
call fcn.00458d10
add esp, 0x10
mov ecx, esi
call fcn.00458d80
mov ecx, esi
call fcn.00458d90
mov al, byte [esp + 0x447]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x43c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0x90]
mov esi, dword [esp + 0x1c]
sub esi, ecx
cmp byte [esp + 0xc], 0
cmovs edi, dword [esp + 0x10]
add edi, ecx
mov ecx, dword [edx + 0x94]
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 0x98]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
test eax, eax
je 0x460a9b
mov esi, eax
mov ecx, eax
call fcn.0041a910
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 4]
call dword [section..00cfg]
lea eax, [esp + 0x30]
lea edx, [esp + 0x24]
push eax
push edx
push dword [esp + 0x14]
push dword [esp + 0x1c]
push edi
call ecx
add esp, 0x14
lock sub dword [esi], 1
mov edi, dword [esp + 0x14]
jne 0x460ac4
push esi
call fcn.00458b10
add esp, 4
jmp 0x460ac4
mov ecx, dword [4]
call dword [section..00cfg]
lea eax, [esp + 0x30]
lea edx, [esp + 0x24]
push eax
push edx
push dword [esp + 0x14]
push dword [esp + 0x1c]
push 0
call ecx
add esp, 0x14
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
call fcn.00458c50
cmp byte [esp + 0x447], 0
jns 0x4608c6
jmp 0x4608b7
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x43c]
mov dword [esp + 0x3c], eax
mov ecx, str.LogMessage
xor edx, edx
lea eax, [esp + 0x38]
push eax
push 0
call fcn.00461020
add esp, 8
jmp 0x4606b6
push 0x7ae4a4
call fcn.006c9157
add esp, 4
cmp dword [0x7ae4a4], 0xffffffff
jne 0x460897
xorps xmm0, xmm0
movups xmmword [0x7ae494], xmm0
push 0x7ae4a4
call fcn.006c91cd
add esp, 4
jmp 0x460897
push 0x7ae4a4
call fcn.006c9157
add esp, 4
cmp dword [0x7ae4a4], 0xffffffff
jne 0x460956
xorps xmm0, xmm0
movups xmmword [0x7ae494], xmm0
push 0x7ae4a4
call fcn.006c91cd
add esp, 4
jmp 0x460956