Function at 0x42bf20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x828
mov esi, ecx
mov eax, dword [0x591128]
xor eax, ebp
mov dword [esp + 0x820], eax
mov dword [ecx], 0x53f288
lea edi, [ecx + 8]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
mov ecx, 0xffffffff
test byte [esi + eax + 0x18], 5
jne 0x42bf7d
mov ecx, dword [edi + eax + 0x18]
mov eax, dword [ecx]
sub esp, 0x14
movaps xmm0, xmmword [0x53c7c0]
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], edi
mov dword [esp + 4], esi
jne 0x42c104
call fcn.00455dc0
test al, al
jne 0x42c104
lea esi, [esp + 0x434]
push 0x3ec
push 0xff
push esi
call fcn.00512f00
add esp, 0xc
mov ecx, esi
call fcn.00428730
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
lea edi, [esp + 0x30]
push edi
call fcn.0040a18a
mov ecx, edi
push 0x592504
call fcn.0040dc30
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov ebx, eax
mov ecx, edi
call fcn.0040dba2
movsx eax, bl
mov ecx, dword [esp]
push eax
call fcn.0040b600
mov ecx, dword [esp]
call fcn.0040a890
mov ecx, esi
push dword [esp]
call fcn.004287c0
push 0x3f4
push 0xff
push edi
call fcn.00512f00
add esp, 0xc
mov ecx, edi
call fcn.00455df0
mov ecx, edi
mov edi, dword [esp]
call fcn.00455ed0
test al, al
jne 0x42c03f
lea ecx, [esp + 0x30]
push edi
call fcn.00455ee0
call fcn.00438bc0
test eax, eax
je 0x42c100
mov ebx, eax
cmp dword [eax + 0x38], 0
je 0x42c100
push 0x1d
push str.IPC_message_handler_context:
push edi
call fcn.00401c3f
add esp, 0xc
mov esi, eax
lea eax, [esp + 0x1c]
push dword [ebx + 0x38]
push str.0x_08X
push eax
call fcn.00437950
add esp, 0xc
movzx eax, byte [esp + 0x1c]
test al, 1
je 0x42c092
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
jmp 0x42c098
shr eax, 1
lea ecx, [esp + 0x1d]
push eax
push ecx
push esi
call fcn.00401c3f
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.0040a18a
mov ecx, edi
push 0x592504
call fcn.0040dc30
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov byte [esp + 0xc], al
mov ecx, edi
call fcn.0040dba2
movsx eax, byte [esp + 0xc]
mov ecx, ebx
push eax
call fcn.0040b600
mov ecx, ebx
call fcn.0040a890
test byte [esp + 0x1c], 1
je 0x42c0fd
push dword [esp + 0x24]
call fcn.0050f3dd
add esp, 4
mov edi, dword [esp]
mov esi, dword [esp + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
add ecx, edi
lea esi, [esp + 0x30]
push esi
call fcn.0040a18a
mov ecx, esi
push 0x592504
call fcn.0040dc30
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov ebx, eax
mov ecx, esi
call fcn.0040dba2
movsx eax, bl
mov ebx, dword [esp + 4]
mov ecx, edi
push eax
call fcn.0040b600
mov ecx, edi
call fcn.0040a890
mov dword [esp + 0x434], 0xffffffff
mov dword [esp + 0x438], 0xffffffff
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [ebx + 0xc]
lea edi, [esp + 0x434]
mov dword [esp + 0xc], ecx
push edi
call fcn.00402d10
test byte [0x5906a8], 0x19
jne 0x42c4f1
mov eax, dword [0x592be8]
test eax, eax
je 0x42c1d5
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
je 0x42c1d5
test byte [esp + 0x434], 1
je 0x42c1cd
push dword [esp + 0x43c]
call fcn.0050f3dd
add esp, 4
mov edi, dword [esp]
jmp 0x42c391
mov eax, dword [0x5902d0]
test al, 2
lea esi, [esp + 0x30]
je 0x42c208
test byte [esp + 0x434], 1
je 0x42c1f5
mov eax, dword [esp + 0x43c]
jmp 0x42c1fc
lea eax, [esp + 0x435]
push eax
call dword [0x58b37c]
mov eax, dword [0x5902d0]
test al, 4
jne 0x42c217
cmp dword [ebx + 4], 2
jl 0x42c26c
cmp eax, 1
ja 0x42c26c
push 2
call fcn.00513cff
add esp, 4
movzx ecx, byte [esp + 0x434]
test cl, 1
je 0x42c23e
mov ecx, dword [esp + 0x438]
mov edx, dword [esp + 0x43c]
jmp 0x42c247
shr ecx, 1
lea edx, [esp + 0x435]
push eax
push 1
push ecx
push edx
call fcn.00525b6b
add esp, 0x10
push 2
call fcn.00513cff
add esp, 4
push eax
call fcn.005256eb
add esp, 4
mov eax, dword [0x5902d0]
test al, 1
mov edi, dword [esp]
je 0x42c2ba
call fcn.0042b7f0
test al, al
je 0x42c2ba
mov dword [esp + 0x30], 0xffffffff
movzx eax, byte [esp + 0x434]
test al, 1
je 0x42c2a0
mov eax, dword [esp + 0x438]
mov ecx, dword [esp + 0x43c]
jmp 0x42c2a9
shr eax, 1
lea ecx, [esp + 0x435]
push 0
push esi
push eax
push ecx
push dword [0x592bf4]
call dword [0x58b4a8]
cmp dword [ebx + 4], 3
jne 0x42c378
mov ecx, dword [0x593ca4]
test ecx, ecx
je 0x42c2fa
movzx eax, byte [esp + 0x434]
test al, 1
je 0x42c2ea
mov edx, dword [esp + 0x43c]
mov eax, dword [esp + 0x438]
jmp 0x42c2f3
shr eax, 1
lea edx, [esp + 0x435]
push eax
push edx
call fcn.00457d20
push 0x400
push 0xff
push esi
call fcn.00512f00
add esp, 0xc
test byte [esp + 0x434], 1
lea eax, [esp + 0x435]
mov dword [esp + 8], eax
je 0x42c329
mov eax, dword [esp + 0x43c]
push 0x400
push eax
push esi
call fcn.00437320
add esp, 0xc
push esi
call fcn.004028c0
add esp, 4
mov eax, dword [0x592c08]
mov ecx, dword [0x593c6c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x42c509
mov eax, dword [0x592c00]
cmp eax, dword [0x592c04]
jne 0x42c3f6
call fcn.00455dd0
test byte [esp + 0x434], 1
je 0x42c391
push dword [esp + 0x43c]
call fcn.0050f3dd
add esp, 4
lea ecx, [ebx + 0xa0]
call fcn.00455d60
mov ecx, ebx
add ebx, 0x40
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
mov dword [ecx + eax + 8], vtable.std::__1::basic_ostringstream_char__struct_std::__1::char_traits_char___class_std::__1::allocator_char__.0
mov dword [ecx + 0xc], vtable.std::__1::basic_stringbuf_char__struct_std::__1::char_traits_char___class_std::__1::allocator_char__.0
test byte [ecx + 0x2c], 1
je 0x42c3c7
push dword [edi + 0x2c]
call fcn.0050f3dd
add esp, 4
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.0040a7dc
mov ecx, esi
call fcn.004028c0
mov ecx, ebx
call fcn.0040a7d2
mov ecx, dword [esp + 0x820]
xor ecx, ebp
call fcn.0050f421
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [0x592c08]
mov ecx, dword [0x593c6c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x42c53f
mov eax, dword [0x592c04]
test eax, eax
jne 0x42c42d
mov eax, dword [0x592bfc]
add eax, 0xffffffff
mov ecx, 0x592bf8
push eax
call fcn.004245a0
lea ecx, [esp + 0x18]
push eax
call fcn.00424800
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x42c4d5
test byte [esp + 0x434], 1
je 0x42c466
mov eax, dword [esp + 0x43c]
mov dword [esp + 8], eax
mov edi, dword [esp + 8]
add edi, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x42c47f
push edi
call fcn.00527590
add esp, 4
jmp 0x42c481
xor eax, eax
mov ecx, dword [ebx + 0x90]
mov ebx, dword [esp + 0x10]
sub ebx, ecx
mov esi, dword [esp + 8]
add esi, ecx
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 0x94]
mov edx, dword [esp + 4]
mov edx, dword [edx + 0x98]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 4]
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
mov eax, dword [esp + 0x24]
push eax
call dword [eax + 4]
add esp, 0x14
mov edi, dword [esp]
lea ecx, [esp + 0x18]
call fcn.004247e0
test byte [esp + 0x434], 1
jne 0x42c382
jmp 0x42c391
mov ecx, str.LogMessage
xor edx, edx
push edi
push ebx
push 0
call fcn.0042c930
add esp, 0xc
jmp 0x42c18c
push 0x592c08
call fcn.0050f467
add esp, 4
cmp dword [0x592c08], 0xffffffff
jne 0x42c362
xorps xmm0, xmm0
movups xmmword [0x592bf8], xmm0
push 0x592c08
call fcn.0050f4dd
add esp, 4
jmp 0x42c362
push 0x592c08
call fcn.0050f467
add esp, 4
cmp dword [0x592c08], 0xffffffff
jne 0x42c41f
xorps xmm0, xmm0
movups xmmword [0x592bf8], xmm0
push 0x592c08
call fcn.0050f4dd
add esp, 4
jmp 0x42c41f