Function at 0x49b920
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab206
mov eax, dword fs:[0]
push eax
mov eax, 0x8080
call fcn.00465b20
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8088], ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x4060]
call fcn.00405680
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x4018]
call fcn.00405680
mov byte [ebp - 4], 1
mov dword [ebp - 0x405c], 0
mov dword [ebp - 0x4030], 0
mov dword [ebp - 0x402c], 0
mov dword [ebp - 0x4028], 0
push 0x38
push 0x4bd888
mov eax, dword [ebp - 0x8088]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x4050]
push edx
call fcn.004975d0
add esp, 0x10
mov dword [ebp - 0x405c], eax
cmp dword [ebp - 0x405c], 0
je 0x49ba08
mov eax, dword [ebp - 0x405c]
mov dword [ebp - 0x806c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4018]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x806c]
jmp 0x49bd5a
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
mov ecx, dword [ebp + 8]
call fcn.00405660
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x4060]
call fcn.004056c0
lea ecx, [ebp - 0x4060]
call fcn.004056f0
cmp eax, 0xffffffff
jne 0x49ba89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x405c], eax
mov ecx, dword [ebp - 0x405c]
mov dword [ebp - 0x8070], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4018]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x8070]
jmp 0x49bd5a
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
mov ecx, dword [ebp + 0xc]
call fcn.00405660
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x4018]
call fcn.004056c0
lea ecx, [ebp - 0x4018]
call fcn.004056f0
cmp eax, 0xffffffff
jne 0x49bb0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x405c], eax
mov edx, dword [ebp - 0x405c]
mov dword [ebp - 0x8074], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4018]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x8074]
jmp 0x49bd5a
push 0
lea eax, [ebp - 0x404c]
push eax
push 0x4000
lea ecx, [ebp - 0x8064]
push ecx
lea ecx, [ebp - 0x4060]
call fcn.004056f0
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x405c], eax
cmp dword [ebp - 0x405c], 0
jne 0x49bb9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x49bb58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
jne 0x49bb9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x405c], eax
mov edx, dword [ebp - 0x405c]
mov dword [ebp - 0x8078], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4018]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x8078]
jmp 0x49bd5a
cmp dword [ebp - 0x405c], 0
je 0x49bbba
cmp dword [ebp - 0x404c], 0
jne 0x49bbba
mov dword [ebp - 0x808c], 4
jmp 0x49bbc4
mov dword [ebp - 0x808c], 0
mov eax, dword [ebp - 0x808c]
mov dword [ebp - 0x4058], eax
lea ecx, [ebp - 0x8064]
mov dword [ebp - 0x4050], ecx
mov dword [ebp - 0x4040], 0x4000
lea edx, [ebp - 0x4014]
mov dword [ebp - 0x4044], edx
mov eax, dword [ebp - 0x4058]
push eax
lea ecx, [ebp - 0x4050]
push ecx
call fcn.00496220
add esp, 8
mov dword [ebp - 0x405c], eax
cmp dword [ebp - 0x405c], 0xfffffffe
jne 0x49bc4f
mov edx, dword [ebp - 0x405c]
mov dword [ebp - 0x807c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4018]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x807c]
jmp 0x49bd5a
mov eax, 0x4000
sub eax, dword [ebp - 0x4040]
mov dword [ebp - 0x4054], eax
mov dword [ebp - 0x8068], 0
push 0
lea ecx, [ebp - 0x8068]
push ecx
mov edx, dword [ebp - 0x4054]
push edx
lea eax, [ebp - 0x4014]
push eax
lea ecx, [ebp - 0x4018]
call fcn.004056f0
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x405c], eax
cmp dword [ebp - 0x405c], 0
je 0x49bcb0
mov ecx, dword [ebp - 0x8068]
cmp ecx, dword [ebp - 0x4054]
je 0x49bd00
lea edx, [ebp - 0x4050]
push edx
call fcn.00495800
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x405c], eax
mov eax, dword [ebp - 0x405c]
mov dword [ebp - 0x8080], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4018]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x8080]
jmp 0x49bd5a
cmp dword [ebp - 0x4040], 0
je 0x49bbdc
cmp dword [ebp - 0x4058], 4
jne 0x49bb0a
lea ecx, [ebp - 0x4050]
push ecx
call fcn.00495800
add esp, 4
mov dword [ebp - 0x8084], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4018]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x8084]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004646c1
mov esp, ebp
pop ebp
ret 8