Function at 0x420630
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 [0x5ef0d4]
xor eax, ebp
mov dword [esp + 0x828], eax
mov dword [ecx], 0x5b7640
lea ebx, [ecx + 0x10]
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.00420ef0
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
cmp dword [esi + 8], 3
mov dword [esp], ebx
jne 0x4208bf
call fcn.004357e0
test al, al
jne 0x4208bf
lea edi, [esp + 0x43c]
push 0x3ec
push 0xff
push edi
call fcn.005683c0
add esp, 0xc
mov ecx, edi
call fcn.004357f0
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov eax, dword [ebx + eax + 0x30]
mov edi, dword [eax + 4]
mov dword [esp + 0x24], edi
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x5983d0]
mov ecx, edi
call ebx
lea eax, [esp + 0x20]
push eax
call fcn.00410c97
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x5983d0]
mov ecx, edi
push 0xa
call ebx
mov byte [esp + 4], al
mov edi, dword [esp + 0x24]
test edi, edi
je 0x420727
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x5983d0]
mov ecx, edi
call ebx
test eax, eax
je 0x420727
mov ebx, eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x5983d0]
mov ecx, ebx
push 1
call edi
movsx eax, byte [esp + 4]
mov edi, dword [esp]
mov ecx, edi
push eax
call fcn.00421e40
mov ecx, edi
call fcn.00409e90
lea ecx, [esp + 0x43c]
push edi
call fcn.00435850
push 0x3f8
push 0xff
lea esi, [esp + 0x28]
push esi
call fcn.005683c0
add esp, 0xc
mov ecx, esi
call fcn.00435890
mov ecx, esi
call fcn.00435950
test al, al
jne 0x42077e
lea ecx, [esp + 0x20]
push edi
call fcn.00435960
call fcn.00435b00
test eax, eax
je 0x4208b3
mov ebx, eax
cmp dword [eax + 0x44], 0
je 0x4208b3
push str.IPC_message_handler_context:
push dword [esp + 4]
call fcn.00409a70
add esp, 8
mov edi, eax
lea esi, [esp + 0x424]
push dword [ebx + 0x44]
push str.0x_08X
push esi
call fcn.0041cd20
add esp, 0xc
mov eax, dword [esp + 0x434]
cmp dword [esp + 0x438], 0x10
jb 0x4207da
mov esi, dword [esp + 0x424]
push eax
push esi
push edi
call fcn.004198d0
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 [esp + 0x1c], edi
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x5983d0]
mov ecx, edi
call ebx
lea eax, [esp + 0x18]
push eax
call fcn.00410c97
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x5983d0]
mov ecx, edi
push 0xa
call ebx
mov byte [esp + 4], al
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x42085f
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x5983d0]
mov ecx, edi
call ebx
test eax, eax
je 0x42085f
mov ebx, eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x5983d0]
mov ecx, ebx
push 1
call edi
movsx eax, byte [esp + 4]
mov ecx, esi
push eax
call fcn.00421e40
mov ecx, esi
call fcn.00409e90
mov eax, dword [esp + 0x438]
cmp eax, 0x10
jb 0x4208b3
mov ecx, dword [esp + 0x424]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x4208a9
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x420ee0
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.005660aa
add esp, 8
mov ebx, dword [esp]
push ebx
call fcn.0041eb20
add esp, 4
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov eax, dword [ebx + eax + 0x30]
mov edi, dword [eax + 4]
mov dword [esp + 0x24], edi
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x5983d0]
mov ecx, edi
call ebx
lea eax, [esp + 0x20]
push eax
call fcn.00410c97
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x5983d0]
mov ecx, edi
push 0xa
call ebx
mov ebx, eax
mov edi, dword [esp + 0x24]
test edi, edi
je 0x420935
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5983d0]
mov ecx, edi
call esi
test eax, eax
je 0x420935
mov edi, eax
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [0x5983d0]
mov ecx, edi
push 1
call esi
movsx eax, bl
mov esi, dword [esp]
mov ecx, esi
push eax
call fcn.00421e40
mov ecx, esi
call fcn.00409e90
movaps xmm0, xmmword [0x5b5e40]
movups xmmword [esp + 0x43c], xmm0
movsd xmm0, qword [0x5b5e20]
movsd qword [esp + 0x44c], xmm0
mov byte [esp + 0x43c], 0
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 0x50]
mov ecx, eax
and ecx, 0x22
cmp ecx, 2
je 0x420999
mov ecx, dword [ebx + 0x34]
mov esi, dword [ecx]
test esi, esi
je 0x420999
lea eax, [ebx + 0x24]
mov ecx, dword [ebx + 0x4c]
cmp esi, ecx
cmovb esi, ecx
jmp 0x4209ae
test al, 4
jne 0x4209fe
mov eax, dword [ebx + 0x30]
mov esi, dword [eax]
test esi, esi
je 0x4209fe
lea eax, [ebx + 0x20]
mov ecx, dword [ebx + 0x40]
add esi, dword [ecx]
mov eax, dword [eax]
mov eax, dword [eax]
test eax, eax
je 0x4209fe
sub esi, eax
cmp esi, 0xf
jbe 0x4209dd
sub esp, 0xc
mov cl, byte [esp + 0x2c]
mov byte [esp + 4], cl
mov dword [esp + 8], eax
mov dword [esp], esi
lea ecx, [esp + 0x448]
call fcn.00409180
jmp 0x4209fe
mov dword [esp + 0x44c], esi
lea ecx, [esp + 0x43c]
push esi
push eax
push ecx
call fcn.00568520
add esp, 0xc
mov byte [esp + esi + 0x43c], 0
mov ecx, dword [0x5f2814]
test ecx, ecx
je 0x420a4e
mov eax, dword [ebx + 8]
mov dword [esp], eax
mov edi, dword [ebx + 0xa8]
mov eax, dword [esp + 8]
mov ebx, dword [eax + 0xb0]
mov eax, dword [esp + 8]
mov esi, dword [eax + 0xac]
call dword [0x5983d0]
lea eax, [esp + 0x43c]
push eax
push edi
push ebx
mov ebx, dword [esp + 0x14]
push esi
push dword [esp + 0x10]
call ecx
add esp, 0x14
test al, al
jne 0x420d60
mov eax, dword [0x5eeeec]
test al, 2
je 0x420a7d
cmp dword [esp + 0x450], 0x10
jb 0x420a6a
mov eax, dword [esp + 0x43c]
jmp 0x420a71
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x5eeeec]
test al, 4
jne 0x420a8c
cmp dword [ebx + 8], 2
jl 0x420ae6
cmp eax, 1
ja 0x420ae6
mov esi, dword [esp + 0x44c]
cmp dword [esp + 0x450], 0x10
jb 0x420aaa
mov edi, dword [esp + 0x43c]
test esi, esi
jne 0x420ab5
jmp 0x420ae6
lea edi, [esp + 0x43c]
test esi, esi
je 0x420ae6
xor ebx, ebx
nop word [eax + eax]
mov eax, esi
sub eax, ebx
lea ecx, [edi + ebx]
push eax
push ecx
push 2
call fcn.0056fe4c
add esp, 0xc
test eax, eax
js 0x420add
add ebx, eax
cmp ebx, esi
jb 0x420ac0
mov eax, dword [0x5eeeec]
mov ebx, dword [esp + 8]
test al, 1
je 0x420b31
call fcn.0041fbe0
test al, al
je 0x420b31
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x44c]
cmp dword [esp + 0x450], 0x10
jb 0x420b15
mov ecx, dword [esp + 0x43c]
jmp 0x420b1c
lea ecx, [esp + 0x43c]
push 0
lea edx, [esp + 0x24]
push edx
push eax
push ecx
push dword [0x5f2820]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx + 8], 3
jne 0x420d60
mov ecx, dword [0x5f2800]
test ecx, ecx
je 0x420b6d
mov eax, dword [esp + 0x44c]
cmp dword [esp + 0x450], 0x10
jb 0x420b5f
mov edx, dword [esp + 0x43c]
jmp 0x420b66
lea edx, [esp + 0x43c]
push eax
push edx
call fcn.0041f820
push 0x400
push 0xff
lea eax, [esp + 0x28]
push eax
call fcn.005683c0
add esp, 0xc
cmp dword [esp + 0x450], 0x10
jb 0x420b97
mov eax, dword [esp + 0x43c]
jmp 0x420b9e
lea eax, [esp + 0x43c]
push 0x400
push eax
lea esi, [esp + 0x28]
push esi
call fcn.00430240
add esp, 0xc
push esi
call fcn.00401000
add esp, 4
mov eax, dword [0x5f2834]
mov ecx, dword [0x5f3980]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 8]
jg 0x420e4c
mov eax, dword [0x5f282c]
cmp eax, dword [0x5f2830]
je 0x420ee5
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [0x5f2834]
mov ecx, dword [0x5f3980]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 8]
jg 0x420e96
mov eax, dword [0x5f2830]
mov dword [esp + 0x424], 0x5f2824
mov dword [esp + 0x428], eax
test eax, eax
jne 0x420c3a
mov eax, dword [esp + 0x424]
mov eax, dword [eax + 4]
dec eax
mov dword [esp + 0x428], eax
mov ecx, dword [esp + 0x424]
push eax
call fcn.00421db0
lea ecx, [esp + 0x14]
push eax
call fcn.0042f5c0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x420d57
mov ecx, dword [esp + 0x43c]
mov edx, dword [esp + 0x450]
cmp edx, 0x10
lea ebx, [esp + 0x43c]
mov edi, ebx
cmovae edi, ecx
add edi, dword [esp + 0xc]
je 0x420c9f
push edi
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0x14], edx
call fcn.0056cb00
add esp, 4
jmp 0x420ce8
lea esi, [esp + 0x424]
push 0x5b5f04
push 0x7c
push str..._.._base_strings_string_piece.h
push esi
call fcn.00409a10
add esp, 0x10
mov ecx, esi
call fcn.00409d80
mov ecx, esi
call fcn.00409d90
mov eax, dword [esp + 0x43c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x450]
mov dword [esp + 0x10], eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp], ecx
mov edx, dword [esp + 8]
mov ecx, dword [edx + 0xa8]
mov esi, dword [esp + 0xc]
sub esi, ecx
cmp dword [esp + 0x10], 0x10
cmovae ebx, dword [esp + 4]
add ebx, ecx
mov ecx, dword [edx + 0xac]
mov dword [esp + 0xc], ecx
mov ecx, dword [edx + 0xb0]
mov dword [esp + 4], ecx
mov dword [esp + 0x424], ebx
mov ebx, edx
mov dword [esp + 0x428], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov esi, dword [esp]
mov ecx, dword [esi + 4]
call dword [0x5983d0]
lea eax, [esp + 0x18]
lea edx, [esp + 0x424]
push eax
push edx
push dword [esp + 0xc]
push dword [esp + 0x18]
push esi
call ecx
add esp, 0x14
lea ecx, [esp + 0x14]
call fcn.0042f590
mov eax, dword [esp + 0x450]
cmp eax, 0x10
jb 0x420da0
mov ecx, dword [esp + 0x43c]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x420d96
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x420ee0
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.005660aa
add esp, 8
lea ecx, [ebx + 0xb4]
call fcn.00432cd0
lea esi, [ebx + 0x60]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
mov dword [ebx + eax + 0x10], 0x5b6dcc
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x50]
mov dword [ebx + eax + 0xc], ecx
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x14], 0x5b6d90
call fcn.00414f10
mov dword [ebx + 0x14], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov ebx, dword [ebx + 0x48]
test ebx, ebx
je 0x420e27
mov dword [esp + 8], esi
mov esi, dword [ebx + 4]
test esi, esi
je 0x420e1a
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x5983d0]
mov ecx, esi
call edi
test eax, eax
je 0x420e1a
mov esi, eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x5983d0]
mov ecx, esi
push 1
call edi
push ebx
call fcn.005667c1
add esp, 4
mov esi, dword [esp + 8]
mov dword [esi], vtable.std::ios_base.0
push esi
call fcn.00567da2
add esp, 4
mov ecx, dword [esp + 0x828]
xor ecx, ebp
call fcn.00565e42
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5f2834
call fcn.00566696
add esp, 4
cmp dword [0x5f2834], 0xffffffff
jne 0x420bdb
mov dword [0x5f2824], 0
xorps xmm0, xmm0
movlps qword [0x5f2828], xmm0
mov dword [0x5f2830], 0
push 0x5f2834
call fcn.0056664c
add esp, 4
jmp 0x420bdb
push 0x5f2834
call fcn.00566696
add esp, 4
cmp dword [0x5f2834], 0xffffffff
jne 0x420c15
mov dword [0x5f2824], 0
xorps xmm0, xmm0
movlps qword [0x5f2828], xmm0
mov dword [0x5f2830], 0
push 0x5f2834
call fcn.0056664c
add esp, 4
jmp 0x420c15
call fcn.0056cec6
int3