Function at 0x49bf20
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab254
mov eax, dword fs:[0]
push eax
mov eax, 0x8088
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 - 0x808c], ecx
mov dword [ebp - 0x4018], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x4060]
call fcn.00405680
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x401c]
call fcn.00405680
mov byte [ebp - 4], 1
mov dword [ebp - 0x4064], 0
mov dword [ebp - 0x8068], 0
mov dword [ebp - 0x405c], 0
mov dword [ebp - 0x4034], 0
mov dword [ebp - 0x4030], 0
mov dword [ebp - 0x402c], 0
mov dword [ebp - 0x4050], 0
mov dword [ebp - 0x4054], 0
push 0x38
push 0x4bd950
lea eax, [ebp - 0x4054]
push eax
call fcn.0049af00
add esp, 0xc
mov dword [ebp - 0x405c], eax
cmp dword [ebp - 0x405c], 0
je 0x49c031
mov ecx, dword [ebp - 0x405c]
mov dword [ebp - 0x8070], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x401c]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x8070]
jmp 0x49c410
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 0x49c0b2
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 - 0x401c]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x8074]
jmp 0x49c410
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 - 0x401c]
call fcn.004056c0
lea ecx, [ebp - 0x401c]
call fcn.004056f0
cmp eax, 0xffffffff
jne 0x49c133
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x405c], eax
mov eax, dword [ebp - 0x405c]
mov dword [ebp - 0x8078], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x401c]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x8078]
jmp 0x49c410
push 0
lea ecx, [ebp - 0x4060]
call fcn.004056f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x4064], eax
mov ecx, dword [ebp - 0x4064]
shr ecx, 0xe
mov dword [ebp - 0x4064], ecx
push 0
lea edx, [ebp - 0x4050]
push edx
push 0x4000
lea eax, [ebp - 0x8064]
push eax
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 0x49c1e5
lea ecx, [ebp - 0x4054]
push ecx
call fcn.00498820
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x405c], eax
mov edx, dword [ebp - 0x405c]
mov dword [ebp - 0x807c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x401c]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x807c]
jmp 0x49c410
cmp dword [ebp - 0x4050], 0
jne 0x49c1f3
jmp 0x49c3c4
lea eax, [ebp - 0x8064]
mov dword [ebp - 0x4054], eax
mov dword [ebp - 0x4044], 0x4000
lea ecx, [ebp - 0x4014]
mov dword [ebp - 0x4048], ecx
push 0
lea edx, [ebp - 0x4054]
push edx
call fcn.00498eb0
add esp, 8
mov dword [ebp - 0x4018], eax
mov eax, dword [ebp - 0x4018]
mov dword [ebp - 0x8090], eax
cmp dword [ebp - 0x8090], 2
je 0x49c255
cmp dword [ebp - 0x8090], 0xfffffffb
jbe 0x49c2a6
cmp dword [ebp - 0x8090], 0xfffffffd
jbe 0x49c25f
jmp 0x49c2a6
mov dword [ebp - 0x4018], 0xfffffffd
lea ecx, [ebp - 0x4054]
push ecx
call fcn.00498820
add esp, 4
mov edx, dword [ebp - 0x4018]
mov dword [ebp - 0x8080], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x401c]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x8080]
jmp 0x49c410
mov eax, 0x4000
sub eax, dword [ebp - 0x4044]
mov dword [ebp - 0x4058], eax
mov dword [ebp - 0x806c], 0
push 0
lea ecx, [ebp - 0x806c]
push ecx
mov edx, dword [ebp - 0x4058]
push edx
lea eax, [ebp - 0x4014]
push eax
lea ecx, [ebp - 0x401c]
call fcn.004056f0
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x405c], eax
cmp dword [ebp - 0x405c], 0
je 0x49c307
mov ecx, dword [ebp - 0x806c]
cmp ecx, dword [ebp - 0x4058]
je 0x49c36f
cmp dword [ebp - 0x405c], 0
jne 0x49c31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x405c], eax
jmp 0x49c328
mov dword [ebp - 0x405c], 0xffffffff
lea edx, [ebp - 0x4054]
push edx
call fcn.00498820
add esp, 4
mov eax, dword [ebp - 0x405c]
mov dword [ebp - 0x8084], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x401c]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x8084]
jmp 0x49c410
cmp dword [ebp + 0x10], 0
je 0x49c3aa
mov ecx, dword [ebp - 0x8068]
mov dword [ebp - 0x8094], ecx
mov edx, dword [ebp - 0x4064]
push edx
mov eax, dword [ebp - 0x8094]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 0x8068]
add ecx, 1
mov dword [ebp - 0x8068], ecx
cmp dword [ebp - 0x4044], 0
je 0x49c1ff
cmp dword [ebp - 0x4018], 1
jne 0x49c15c
lea edx, [ebp - 0x4054]
push edx
call fcn.00498820
add esp, 4
mov eax, dword [ebp - 0x4018]
sub eax, 1
neg eax
sbb eax, eax
and eax, 0xfffffffd
mov dword [ebp - 0x8088], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x401c]
call fcn.004056a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4060]
call fcn.004056a0
mov eax, dword [ebp - 0x8088]
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 0xc