Function at 0x4352b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e70a6
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x52610c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x480], ebx
xor edi, edi
mov dword [ebp - 0x468], edi
mov ecx, dword [ebx]
push ecx
lea eax, [ecx + 0x34]
push eax
call fcn.00434670
mov ecx, dword [ebx]
mov dword [ecx + 0x14], eax
mov esi, dword [ebx]
cmp dword [esi + 0x14], edi
jne 0x435425
sub esp, 8
lea ecx, [ebp - 0x7fc]
call fcn.00404d30
mov edx, str.Create_InFile_Timeout
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x7ec]
call fcn.004060e0
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x7fc]
call fcn.00404c20
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
jb 0x43534b
mov esi, dword [esi]
mov edi, dword [0x52e1c0]
test edi, edi
jne 0x43537f
push 0xf0
call fcn.004a0555
add esp, 4
mov dword [ebp - 0x464], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00404270
mov edi, eax
mov byte [ebp - 4], 1
mov dword [0x52e1c0], edi
cmp dword [edi + 0xb8], 4
jg 0x4353e0
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x4353b3
mov eax, dword [edx]
jmp 0x4353b5
mov eax, edx
mov byte [eax], 0
cmp byte [esi], 0
jne 0x4353c1
xor ecx, ecx
jmp 0x4353cf
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4353c6
sub ecx, ebx
push ecx
push esi
mov ecx, edx
call fcn.00409af0
push ecx
mov ecx, edi
call fcn.00404920
mov eax, dword [ebp - 0x414]
cmp eax, 0x10
jb 0x4353fe
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.004099a0
lea ecx, [ebp - 0x794]
call fcn.00404c40
mov dword [ebp - 4], 3
lea eax, [ebp - 0x794]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
jmp 0x435e8c
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004b9930
add esp, 0xc
cmp byte [esi + 0xc1], 0
jne 0x435ce0
nop dword [eax + eax]
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004b9930
add esp, 0xc
lea eax, [ebp - 0x484]
push 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435b87
cmp dword [ebp - 0x484], 8
jb 0x435b73
lea eax, [ebp - 0x400]
mov edi, 8
mov dword [ebp - 0x47c], eax
lea ebx, [ebp - 0x3e0]
lea eax, [ebp - 0x408]
mov dword [ebp - 0x470], eax
lea esi, [ebp - 0x410]
push 0x38
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.004b9930
mov eax, dword [esi + 4]
add ebx, 8
mov edx, dword [ebp - 0x47c]
add esp, 0xc
mov ecx, dword [esi]
add edx, 8
add dword [ebp - 0x470], 8
add esi, 8
add edi, 8
mov dword [ebp - 0x460], ecx
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x47c], edx
mov dword [ebp - 0x478], ebx
test eax, eax
ja 0x435b61
jb 0x43551e
cmp ecx, 3
ja 0x435b61
jmp dword [ecx*4 + 0x435eb4]
cmp edi, dword [ebp - 0x484]
jbe 0x4354c2
mov ebx, dword [ebp - 0x480]
mov esi, dword [ebx]
cmp byte [esi + 0xc1], 0
je 0x435450
jmp 0x435cda
sub esp, 8
lea ecx, [ebp - 0x8ac]
call fcn.00404d30
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.PipeIn_Error:
lea ecx, [ebp - 0x89c]
call fcn.004060e0
mov ecx, eax
call fcn.0041a450
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x8ac]
call fcn.00404c20
mov esi, eax
mov byte [ebp - 4], 5
cmp dword [esi + 0x14], 0x10
jb 0x435bda
mov esi, dword [esi]
mov edi, dword [0x52e1c0]
test edi, edi
jne 0x435c0e
push 0xf0
call fcn.004a0555
add esp, 4
mov dword [ebp - 0x474], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00404270
mov edi, eax
mov byte [ebp - 4], 5
mov dword [0x52e1c0], edi
cmp dword [edi + 0xb8], 1
jg 0x435c75
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x435c42
mov eax, dword [edx]
jmp 0x435c44
mov eax, edx
mov byte [eax], 0
cmp byte [esi], 0
jne 0x435c50
xor ecx, ecx
jmp 0x435c64
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x435c55
sub ecx, ebx
mov ebx, dword [ebp - 0x480]
push ecx
push esi
mov ecx, edx
call fcn.00409af0
push ecx
mov ecx, edi
call fcn.00404920
mov eax, dword [ebp - 0x414]
cmp eax, 0x10
jb 0x435c93
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.004099a0
lea ecx, [ebp - 0x844]
call fcn.00404c40
lea eax, [ebp - 0x844]
mov dword [ebp - 4], 7
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0049d017
mov eax, dword [ebx]
add esp, 4
mov byte [eax + 0xc0], 0
mov eax, dword [ebx]
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x435cda
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [ebp - 0x468]
mov dword [ebp - 0x74c], 0x5071b4
mov dword [ebp - 0x73c], 0x5071a4
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push ecx
lea eax, [ebp - 0x734]
mov dword [ebp - 4], 0x1d
or edi, 8
lea ecx, [ebp - 0x74c]
push eax
mov dword [ebp - 0x468], edi
call fcn.00405ba0
mov dword [ebp - 4], 0x1e
mov eax, dword [ebp - 0x74c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x74c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x750], eax
lea eax, [ebp - 0x734]
mov ecx, eax
mov dword [ebp - 0x474], eax
call fcn.00405e50
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x6fc], 0
mov dword [ebp - 0x6f8], 0
mov edx, str.GameIn:_Exit
mov dword [ebp - 4], 0x20
lea ecx, [ebp - 0x73c]
call fcn.004060e0
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x74c]
call fcn.00404c20
mov esi, eax
mov byte [ebp - 4], 0x21
cmp dword [esi + 0x14], 0x10
jb 0x435db7
mov esi, dword [esi]
mov edi, dword [0x52e1c0]
test edi, edi
jne 0x435deb
push 0xf0
call fcn.004a0555
add esp, 4
mov dword [ebp - 0x474], eax
mov ecx, eax
mov byte [ebp - 4], 0x22
call fcn.00404270
mov edi, eax
mov byte [ebp - 4], 0x21
mov dword [0x52e1c0], edi
cmp dword [edi + 0xb8], 1
jg 0x435e4c
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x435e1f
mov eax, dword [edx]
jmp 0x435e21
mov eax, edx
mov byte [eax], 0
cmp byte [esi], 0
jne 0x435e2d
xor ecx, ecx
jmp 0x435e3b
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x435e32
sub ecx, ebx
push ecx
push esi
mov ecx, edx
call fcn.00409af0
push ecx
mov ecx, edi
call fcn.00404920
mov eax, dword [ebp - 0x414]
cmp eax, 0x10
jb 0x435e6a
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.004099a0
lea ecx, [ebp - 0x6e4]
call fcn.00404c40
mov dword [ebp - 4], 0x23
lea eax, [ebp - 0x6e4]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.0049d017
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0525
mov esp, ebp
pop ebp
ret