Function at 0x49d9a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae2eb
mov eax, dword fs:[0]
push eax
mov eax, 0x8078
call fcn.004682e0
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.004055e0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x49da16
mov dword [ebp - 0x8064], 0x57
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x405c]
call fcn.00405600
mov eax, dword [ebp - 0x8064]
jmp 0x49dd2d
mov dword [ebp - 0x4058], 0
mov dword [ebp - 0x402c], 0
mov dword [ebp - 0x4028], 0
mov dword [ebp - 0x4024], 0
push 0x38
push 0x4c1678
mov eax, dword [ebp - 0x8080]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x404c]
push edx
call fcn.00499eb0
add esp, 0x10
mov dword [ebp - 0x4058], eax
cmp dword [ebp - 0x4058], 0
je 0x49da95
mov eax, dword [ebp - 0x4058]
mov dword [ebp - 0x8068], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x405c]
call fcn.00405600
mov eax, dword [ebp - 0x8068]
jmp 0x49dd2d
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
mov ecx, dword [ebp + 8]
call fcn.004055c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x405c]
call fcn.00405620
lea ecx, [ebp - 0x405c]
call fcn.00405650
cmp eax, 0xffffffff
jne 0x49db07
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.00405600
mov eax, dword [ebp - 0x806c]
jmp 0x49dd2d
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.00405650
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4058], eax
cmp dword [ebp - 0x4058], 0
jne 0x49db93
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x49db5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
jne 0x49db93
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.00405600
mov eax, dword [ebp - 0x8070]
jmp 0x49dd2d
cmp dword [ebp - 0x4058], 0
je 0x49dbb1
cmp dword [ebp - 0x4048], 0
jne 0x49dbb1
mov dword [ebp - 0x8084], 4
jmp 0x49dbbb
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.00498b00
add esp, 8
mov dword [ebp - 0x4058], eax
cmp dword [ebp - 0x4058], 0xfffffffe
jne 0x49dc37
mov edx, dword [ebp - 0x4058]
mov dword [ebp - 0x8074], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x405c]
call fcn.00405600
mov eax, dword [ebp - 0x8074]
jmp 0x49dd2d
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 0x49dca1
mov eax, dword [ebp - 0x8060]
cmp eax, dword [ebp - 0x4050]
je 0x49dce2
lea ecx, [ebp - 0x404c]
push ecx
call fcn.004980e0
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.00405600
mov eax, dword [ebp - 0x8078]
jmp 0x49dd2d
cmp dword [ebp - 0x403c], 0
je 0x49dbd3
cmp dword [ebp - 0x4054], 4
jne 0x49db10
lea eax, [ebp - 0x404c]
push eax
call fcn.004980e0
add esp, 4
mov dword [ebp - 0x807c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x405c]
call fcn.00405600
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.00466e81
mov esp, ebp
pop ebp
ret 0xc