Function at 0x49dfb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aebeb
mov eax, dword fs:[0]
push eax
mov eax, 0x8078
call fcn.004688f0
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8080], ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x405c]
call fcn.004055a0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x49e026
mov dword [ebp - 0x8064], 0x57
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x405c]
call fcn.004055c0
mov eax, dword [ebp - 0x8064]
jmp 0x49e33d
mov dword [ebp - 0x4058], 0
mov dword [ebp - 0x402c], 0
mov dword [ebp - 0x4028], 0
mov dword [ebp - 0x4024], 0
push 0x38
push 0x4c16a8
mov eax, dword [ebp - 0x8080]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x404c]
push edx
call fcn.0049a4c0
add esp, 0x10
mov dword [ebp - 0x4058], eax
cmp dword [ebp - 0x4058], 0
je 0x49e0a5
mov eax, dword [ebp - 0x4058]
mov dword [ebp - 0x8068], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x405c]
call fcn.004055c0
mov eax, dword [ebp - 0x8068]
jmp 0x49e33d
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
call fcn.00405580
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x405c]
call fcn.004055e0
lea ecx, [ebp - 0x405c]
call fcn.00405610
cmp eax, 0xffffffff
jne 0x49e117
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4058], eax
mov ecx, dword [ebp - 0x4058]
mov dword [ebp - 0x806c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x405c]
call fcn.004055c0
mov eax, dword [ebp - 0x806c]
jmp 0x49e33d
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
push 0
lea eax, [ebp - 0x4048]
push eax
push 0x4000
lea ecx, [ebp - 0x805c]
push ecx
lea ecx, [ebp - 0x405c]
call fcn.00405610
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4058], eax
cmp dword [ebp - 0x4058], 0
jne 0x49e1a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x49e16e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
jne 0x49e1a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4058], eax
mov edx, dword [ebp - 0x4058]
mov dword [ebp - 0x8070], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x405c]
call fcn.004055c0
mov eax, dword [ebp - 0x8070]
jmp 0x49e33d
cmp dword [ebp - 0x4058], 0
je 0x49e1c1
cmp dword [ebp - 0x4048], 0
jne 0x49e1c1
mov dword [ebp - 0x8084], 4
jmp 0x49e1cb
mov dword [ebp - 0x8084], 0
mov eax, dword [ebp - 0x8084]
mov dword [ebp - 0x4054], eax
lea ecx, [ebp - 0x805c]
mov dword [ebp - 0x404c], ecx
mov dword [ebp - 0x403c], 0x4000
lea edx, [ebp - 0x4014]
mov dword [ebp - 0x4040], edx
mov eax, dword [ebp - 0x4054]
push eax
lea ecx, [ebp - 0x404c]
push ecx
call fcn.00499110
add esp, 8
mov dword [ebp - 0x4058], eax
cmp dword [ebp - 0x4058], 0xfffffffe
jne 0x49e247
mov edx, dword [ebp - 0x4058]
mov dword [ebp - 0x8074], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x405c]
call fcn.004055c0
mov eax, dword [ebp - 0x8074]
jmp 0x49e33d
mov eax, 0x4000
sub eax, dword [ebp - 0x403c]
mov dword [ebp - 0x4050], eax
mov dword [ebp - 0x8060], 0
mov ecx, dword [ebp - 0x8080]
mov edx, dword [ecx + 4]
push edx
lea eax, [ebp - 0x8060]
push eax
mov ecx, dword [ebp - 0x4050]
push ecx
lea edx, [ebp - 0x4014]
push edx
call dword [ebp + 0xc]
mov dword [ebp - 0x4058], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x8060]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 0x4058], 0
je 0x49e2b1
mov eax, dword [ebp - 0x8060]
cmp eax, dword [ebp - 0x4050]
je 0x49e2f2
lea ecx, [ebp - 0x404c]
push ecx
call fcn.004986f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4058], eax
mov edx, dword [ebp - 0x4058]
mov dword [ebp - 0x8078], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x405c]
call fcn.004055c0
mov eax, dword [ebp - 0x8078]
jmp 0x49e33d
cmp dword [ebp - 0x403c], 0
je 0x49e1e3
cmp dword [ebp - 0x4054], 4
jne 0x49e120
lea eax, [ebp - 0x404c]
push eax
call fcn.004986f0
add esp, 4
mov dword [ebp - 0x807c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x405c]
call fcn.004055c0
mov eax, dword [ebp - 0x807c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00467491
mov esp, ebp
pop ebp
ret 0xc