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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492688
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5a7f20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
call fcn.00482f59
mov ecx, dword [ebp + 8]
push esi
push esi
push 3
mov dword [ebp - 0x1c], eax
or dword [ebp - 0x1c], 0x81
mov eax, dword [ebp - 0x1c]
push esi
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, esi
je 0x490f60
cmp ebx, 0xffffffff
je 0x490f60
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, esi
je 0x490f60
cmp ecx, 0xffffffff
je 0x490f60
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
lea edx, [ebp - 0x11]
push edx
push ecx
xor eax, eax
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
mov byte [ebp - 0x11], 0
call fcn.00445700
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
cmp esi, edi
je 0x490f41
sub edi, esi
cmp edi, dword [ebp - 0x1c]
jne 0x490f41
test esi, esi
je 0x490f60
push 0
lea eax, [ebp - 0x20]
push eax
push edi
push esi
push ebx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x490cb2
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], ecx
jne 0x490cb2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
lea edx, [ebp - 0x38]
push 0x5a78d4
push edx
xor ebx, ebx
call fcn.004903f0
add esp, 0xc
test eax, eax
jne 0x490cbf
lea ecx, [ebp - 0x38]
call fcn.00445530
jmp 0x490f60
push 0x3ac17
lea eax, [ebp - 0x38]
push 0x493d08
push eax
call fcn.004903f0
add esp, 0xc
lea ecx, [ebp - 0x38]
test eax, eax
jne 0x490ce6
call fcn.00445530
jmp 0x490f60
push 0xd8980
push 0x4ce920
push ecx
call fcn.004903f0
add esp, 0xc
test eax, eax
jne 0x490d0a
lea ecx, [ebp - 0x38]
call fcn.00445530
jmp 0x490f60
push 0x27
lea edx, [ebp - 0x38]
push 0x5a73ac
push edx
call fcn.004903f0
add esp, 0xc
test eax, eax
jne 0x490d2e
lea ecx, [ebp - 0x38]
call fcn.00445530
jmp 0x490f60
push 0x17
lea eax, [ebp - 0x38]
push 0x5a73d4
push eax
call fcn.004903f0
add esp, 0xc
lea ecx, [ebp - 0x38]
test eax, eax
jne 0x490d52
call fcn.00445530
jmp 0x490f60
push 0x63
push 0x5a73f0
push ecx
call fcn.004903f0
add esp, 0xc
test eax, eax
jne 0x490d73
lea ecx, [ebp - 0x38]
call fcn.00445530
jmp 0x490f60
push 0x27
lea edx, [ebp - 0x38]
push 0x5a7454
push edx
call fcn.004903f0
add esp, 0xc
test eax, eax
jne 0x490d97
lea ecx, [ebp - 0x38]
call fcn.00445530
jmp 0x490f60
push 0x25
lea eax, [ebp - 0x38]
push 0x5a747c
push eax
call fcn.004903f0
add esp, 0xc
lea ecx, [ebp - 0x38]
test eax, eax
jne 0x490dbb
call fcn.00445530
jmp 0x490f60
push 0x1e1
push 0x5a74a8
push ecx
call fcn.004903f0
add esp, 0xc
test eax, eax
jne 0x490ddf
lea ecx, [ebp - 0x38]
call fcn.00445530
jmp 0x490f60
push 0x47
lea edx, [ebp - 0x38]
push 0x5a7690
push edx
call fcn.004903f0
add esp, 0xc
test eax, eax
jne 0x490e03
lea ecx, [ebp - 0x38]
call fcn.00445530
jmp 0x490f60
push 0x73
lea eax, [ebp - 0x38]
push 0x5a76d8
push eax
call fcn.004903f0
add esp, 0xc
lea ecx, [ebp - 0x38]
test eax, eax
jne 0x490e27
call fcn.00445530
jmp 0x490f60
push 0x1d
push 0x5a774c
push ecx
call fcn.004903f0
add esp, 0xc
test eax, eax
jne 0x490e48
lea ecx, [ebp - 0x38]
call fcn.00445530
jmp 0x490f60
push 0x8b
lea edx, [ebp - 0x38]
push 0x5a7770
push edx
call fcn.004903f0
add esp, 0xc
test eax, eax
jne 0x490e6f
lea ecx, [ebp - 0x38]
call fcn.00445530
jmp 0x490f60
push 0x6b
lea eax, [ebp - 0x38]
push 0x5a7800
push eax
call fcn.004903f0
add esp, 0xc
lea ecx, [ebp - 0x38]
test eax, eax
jne 0x490e93
call fcn.00445530
jmp 0x490f60
push 0x45
push 0x5a7870
push ecx
call fcn.004903f0
add esp, 0xc
test eax, eax
jne 0x490eb4
lea ecx, [ebp - 0x38]
call fcn.00445530
jmp 0x490f60
push 0x1b
lea edx, [ebp - 0x38]
push 0x5a78b8
push edx
call fcn.004903f0
add esp, 0xc
test eax, eax
jne 0x490ed8
lea ecx, [ebp - 0x38]
call fcn.00445530
jmp 0x490f60
mov eax, dword [ebp + 0xc]
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x490cb2
cmp eax, 0xffffffff
je 0x490cb2
push 0
lea ecx, [ebp - 0x20]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x490f27
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 1
cmp edx, dword [ebp - 0x20]
je 0x490f2a
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], ebx
call fcn.00445530
jmp 0x490f60
test esi, esi
je 0x490f60
push esi
call fcn.00480e61
add esp, 4
jmp 0x490f60
test ebx, ebx
je 0x490f70
cmp ebx, 0xffffffff
je 0x490f70
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x490f83
cmp eax, 0xffffffff
je 0x490f83
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret