Function at 0x4082f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409676
mov eax, dword fs:[0]
push eax
mov eax, 0x11a4
call fcn.00409180
mov eax, dword [0x40c018]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11a8], 0
lea ecx, [ebp - 0x10]
call fcn.00401fa0
mov dword [ebp - 4], 1
mov dword [ebp - 0x38], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 0xc]
call fcn.00402640
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x408398
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402000
mov ecx, dword [ebp - 0x11a8]
or ecx, 1
mov dword [ebp - 0x11a8], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004020e0
mov eax, dword [ebp + 8]
jmp 0x40853d
lea ecx, [ebp - 0x109c]
call fcn.00407670
mov byte [ebp - 4], 2
mov dword [ebp - 0x1040], 1
mov dword [ebp - 0x10a0], 0x1000
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x103c], 0
push 0xfff
push 0
lea edx, [ebp - 0x103b]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10a0]
push ecx
lea edx, [ebp - 0x103c]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1040], eax
cmp dword [ebp - 0x1040], 0
jne 0x40844c
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402000
mov edx, dword [ebp - 0x11a8]
or edx, 1
mov dword [ebp - 0x11a8], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x109c]
call fcn.00407660
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004020e0
mov eax, dword [ebp + 8]
jmp 0x40853d
cmp dword [ebp - 0x14], 0
jbe 0x40846a
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x103c]
push ecx
lea ecx, [ebp - 0x109c]
call fcn.00408020
jmp 0x408472
cmp dword [ebp - 0x14], 0
jne 0x408472
jmp 0x40847f
cmp dword [ebp - 0x1040], 0
jne 0x4083df
cmp dword [ebp - 0x38], 0xffffffff
je 0x40848f
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x109c]
call fcn.00408120
mov byte [ebp - 4], 3
push 0xfde9
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [ebp - 0x11a4]
call fcn.004025e0
mov dword [ebp - 0x11ac], eax
mov ecx, dword [ebp - 0x11ac]
mov dword [ebp - 0x11b0], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x11b0]
call fcn.00402640
push eax
lea ecx, [ebp - 0x10]
call fcn.00402150
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11a4]
call fcn.00402610
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402000
mov eax, dword [ebp - 0x11a8]
or eax, 1
mov dword [ebp - 0x11a8], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x109c]
call fcn.00407660
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004020e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00406bbc
mov esp, ebp
pop ebp
ret