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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab216
mov eax, dword fs:[0]
push eax
mov eax, 0x8080
call fcn.00465b30
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 0x4bd948
mov eax, dword [ebp - 0x8088]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x4050]
push edx
call fcn.004975e0
add esp, 0x10
mov dword [ebp - 0x405c], eax
cmp dword [ebp - 0x405c], 0
je 0x49ba18
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 0x49bd6a
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 0x49ba99
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 0x49bd6a
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 0x49bb1a
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 0x49bd6a
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 0x49bbac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x49bb68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
jne 0x49bbac
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 0x49bd6a
cmp dword [ebp - 0x405c], 0
je 0x49bbca
cmp dword [ebp - 0x404c], 0
jne 0x49bbca
mov dword [ebp - 0x808c], 4
jmp 0x49bbd4
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.00496230
add esp, 8
mov dword [ebp - 0x405c], eax
cmp dword [ebp - 0x405c], 0xfffffffe
jne 0x49bc5f
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 0x49bd6a
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 0x49bcc0
mov ecx, dword [ebp - 0x8068]
cmp ecx, dword [ebp - 0x4054]
je 0x49bd10
lea edx, [ebp - 0x4050]
push edx
call fcn.00495810
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 0x49bd6a
cmp dword [ebp - 0x4040], 0
je 0x49bbec
cmp dword [ebp - 0x4058], 4
jne 0x49bb1a
lea ecx, [ebp - 0x4050]
push ecx
call fcn.00495810
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.004646d1
mov esp, ebp
pop ebp
ret 8