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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x830
mov esi, ecx
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [esp + 0x828], eax
mov dword [ecx], 0x543078
lea eax, [ecx + 8]
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
mov ecx, 0xffffffff
test byte [esi + eax + 0x18], 5
jne 0x42b305
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + eax + 0x18]
mov eax, dword [ecx]
sub esp, 0x14
movaps xmm0, xmmword [0x5405e0]
movups xmmword [esp + 4], xmm0
lea edx, [esp + 0x44]
mov dword [esp], edx
call dword [eax + 0xc]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
cmp dword [esi + 4], 3
mov dword [esp + 8], esi
jne 0x42b48e
call fcn.00458170
test al, al
jne 0x42b48e
lea esi, [esp + 0x43c]
push 0x3ec
push 0xff
push esi
call fcn.00516da0
add esp, 0xc
mov ecx, esi
call fcn.00427df0
mov edi, dword [esp + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
lea esi, [esp + 0x30]
push esi
call fcn.00409f0a
mov ecx, esi
push 0x598398
call fcn.0040d770
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov ebx, eax
mov ecx, esi
call fcn.0040d6e2
movsx eax, bl
mov ecx, edi
push eax
call fcn.0040b260
mov ecx, edi
call fcn.0040a4d0
lea ecx, [esp + 0x43c]
push edi
call fcn.00427e50
push 0x3f4
push 0xff
push esi
call fcn.00516da0
add esp, 0xc
mov ecx, esi
call fcn.004581a0
mov ecx, esi
call fcn.00458260
test al, al
jne 0x42b3c9
lea ecx, [esp + 0x30]
push dword [esp + 4]
call fcn.00458270
call fcn.00438970
test eax, eax
je 0x42b48a
mov ebx, eax
cmp dword [eax + 0x38], 0
je 0x42b48a
push 0x1d
push str.IPC_message_handler_context:
push dword [esp + 0xc]
call fcn.00401c91
add esp, 0xc
mov esi, eax
lea eax, [esp + 0x1c]
push dword [ebx + 0x38]
push str.0x_08X
push eax
call fcn.00437c00
add esp, 0xc
movzx eax, byte [esp + 0x1c]
test al, 1
je 0x42b41f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
jmp 0x42b425
shr eax, 1
lea ecx, [esp + 0x1d]
push eax
push ecx
push esi
call fcn.00401c91
add esp, 0xc
mov ebx, eax
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add ecx, ebx
lea edi, [esp + 0x28]
push edi
call fcn.00409f0a
mov ecx, edi
push 0x598398
call fcn.0040d770
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov byte [esp + 0xc], al
mov ecx, edi
call fcn.0040d6e2
movsx eax, byte [esp + 0xc]
mov ecx, ebx
push eax
call fcn.0040b260
mov ecx, ebx
call fcn.0040a4d0
test byte [esp + 0x1c], 1
je 0x42b48a
push dword [esp + 0x24]
call fcn.005128f8
add esp, 4
mov esi, dword [esp + 8]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
mov edi, dword [esp + 4]
add ecx, edi
lea esi, [esp + 0x30]
push esi
call fcn.00409f0a
mov ecx, esi
push 0x598398
call fcn.0040d770
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov ebx, eax
mov ecx, esi
call fcn.0040d6e2
movsx eax, bl
mov ebx, dword [esp + 8]
mov ecx, edi
push eax
call fcn.0040b260
mov ecx, edi
call fcn.0040a4d0
mov dword [esp + 0x43c], 0xffffffff
mov dword [esp + 0x440], 0xffffffff
mov dword [esp + 0x444], 0xffffffff
lea ecx, [ebx + 0xc]
lea edi, [esp + 0x43c]
mov dword [esp + 0xc], ecx
push edi
call fcn.00402d60
test byte [0x596560], 0x19
jne 0x42b84e
mov eax, dword [0x598a58]
test eax, eax
je 0x42b546
push edi
push dword [ebx + 0x90]
push dword [ebx + 0x98]
push dword [ebx + 0x94]
push dword [ebx + 4]
call eax
add esp, 0x14
test al, al
jne 0x42b6e0
mov eax, dword [0x5961a0]
test al, 2
lea esi, [esp + 0x30]
je 0x42b579
test byte [esp + 0x43c], 1
je 0x42b566
mov eax, dword [esp + 0x444]
jmp 0x42b56d
lea eax, [esp + 0x43d]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x5961a0]
test al, 4
jne 0x42b588
cmp eax, 1
ja 0x42b5dd
cmp dword [ebx + 4], 2
jl 0x42b5dd
push 2
call fcn.00517b8f
add esp, 4
movzx ecx, byte [esp + 0x43c]
test cl, 1
je 0x42b5af
mov ecx, dword [esp + 0x440]
mov edx, dword [esp + 0x444]
jmp 0x42b5b8
shr ecx, 1
lea edx, [esp + 0x43d]
push eax
push 1
push ecx
push edx
call fcn.00529cab
add esp, 0x10
push 2
call fcn.00517b8f
add esp, 4
push eax
call fcn.0052982b
add esp, 4
mov eax, dword [0x5961a0]
test al, 1
je 0x42b628
call fcn.0042ab80
test al, al
je 0x42b628
mov dword [esp + 0x30], 0xffffffff
movzx eax, byte [esp + 0x43c]
test al, 1
je 0x42b60e
mov eax, dword [esp + 0x440]
mov ecx, dword [esp + 0x444]
jmp 0x42b617
shr eax, 1
lea ecx, [esp + 0x43d]
push 0
push esi
push eax
push ecx
push dword [0x598a64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx + 4], 3
jne 0x42b6e0
mov ecx, dword [0x599bac]
test ecx, ecx
je 0x42b668
movzx eax, byte [esp + 0x43c]
test al, 1
je 0x42b658
mov edx, dword [esp + 0x444]
mov eax, dword [esp + 0x440]
jmp 0x42b661
shr eax, 1
lea edx, [esp + 0x43d]
push eax
push edx
call fcn.0045a220
push 0x400
push 0xff
push esi
call fcn.00516da0
add esp, 0xc
add edi, 1
test byte [esp + 0x43c], 1
mov eax, edi
je 0x42b691
mov eax, dword [esp + 0x444]
push 0x400
push eax
push esi
call fcn.00437ab0
add esp, 0xc
push esi
call fcn.00402910
add esp, 4
mov eax, dword [0x598a78]
mov ecx, dword [0x599af4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42b86d
mov eax, dword [0x598a70]
cmp eax, dword [0x598a74]
jne 0x42b762
call fcn.00458180
test byte [esp + 0x43c], 1
je 0x42b6f9
push dword [esp + 0x444]
call fcn.005128f8
add esp, 4
mov edi, dword [esp + 0xc]
lea ecx, [ebx + 0xa0]
call fcn.00458110
mov ecx, ebx
add ebx, 0x40
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
mov dword [ecx + eax + 8], 0x53f4ec
mov dword [ecx + 0xc], 0x53f4f0
test byte [ecx + 0x2c], 1
je 0x42b737
mov eax, dword [esp + 4]
push dword [eax + 0x2c]
call fcn.005128f8
add esp, 4
mov ecx, edi
call fcn.0040a41c
mov ecx, edi
call fcn.00402910
mov ecx, ebx
call fcn.0040a412
mov ecx, dword [esp + 0x828]
xor ecx, ebp
call fcn.00512931
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [0x598a78]
mov ecx, dword [0x599af4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42b8a3
mov eax, dword [0x598a74]
test eax, eax
jne 0x42b799
mov eax, dword [0x598a6c]
add eax, 0xffffffff
mov ecx, 0x598a68
push eax
call fcn.00423990
lea ecx, [esp + 0x18]
push eax
call fcn.00423bd0
mov esi, dword [esp + 0x18]
test esi, esi
je 0x42b832
test byte [esp + 0x43c], 1
je 0x42b7ca
mov edi, dword [esp + 0x444]
mov eax, dword [esp + 0x10]
add eax, edi
test edi, edi
mov dword [esp + 0x14], eax
je 0x42b7e3
push eax
call fcn.0052b730
add esp, 4
jmp 0x42b7e5
xor eax, eax
mov ecx, dword [ebx + 0x90]
mov ebx, dword [esp + 0x10]
sub ebx, ecx
add edi, ecx
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 0x94]
mov edx, dword [esp + 8]
mov edx, dword [edx + 0x98]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
lea edi, [esp + 0x1c]
push eax
push edi
push edx
push ecx
push esi
call dword [esi + 4]
add esp, 0x14
lea ecx, [esp + 0x18]
call fcn.00423bb0
test byte [esp + 0x43c], 1
jne 0x42b6ea
jmp 0x42b6f9
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
lea ecx, [esp + 0x30]
xor edx, edx
push edi
push ebx
push 0
call fcn.0042bcf0
add esp, 0xc
jmp 0x42b51a
push 0x598a78
call fcn.00512977
add esp, 4
cmp dword [0x598a78], 0xffffffff
jne 0x42b6ca
xorps xmm0, xmm0
movups xmmword [0x598a68], xmm0
push 0x598a78
call fcn.005129ed
add esp, 4
jmp 0x42b6ca
push 0x598a78
call fcn.00512977
add esp, 4
cmp dword [0x598a78], 0xffffffff
jne 0x42b78b
xorps xmm0, xmm0
movups xmmword [0x598a68], xmm0
push 0x598a78
call fcn.005129ed
add esp, 4
jmp 0x42b78b