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

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x491fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5976c0]
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.00483b5f
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 0x490edd
cmp ebx, 0xffffffff
je 0x490edd
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, esi
je 0x490edd
cmp ecx, 0xffffffff
je 0x490edd
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.00446de0
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
cmp esi, edi
je 0x490ebe
sub edi, esi
cmp edi, dword [ebp - 0x1c]
jne 0x490ebe
test esi, esi
je 0x490edd
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 0x490c32
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], ecx
jne 0x490c32
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x10
lea edx, [ebp - 0x38]
push 0x59714c
push edx
xor ebx, ebx
call fcn.00490370
add esp, 0xc
or eax, eax
jne 0x490c3f
lea ecx, [ebp - 0x38]
call fcn.00446d10
jmp 0x490edd
push 0x2f8c0
lea eax, [ebp - 0x38]
push 0x493b78
push eax
call fcn.00490370
add esp, 0xc
lea ecx, [ebp - 0x38]
or eax, eax
jne 0x490c66
call fcn.00446d10
jmp 0x490edd
push 0xd37b7
push 0x4c3438
push ecx
call fcn.00490370
add esp, 0xc
test eax, eax
jne 0x490c8a
lea ecx, [ebp - 0x38]
call fcn.00446d10
jmp 0x490edd
push 0x3f
lea edx, [ebp - 0x38]
push 0x596cfc
push edx
call fcn.00490370
add esp, 0xc
or eax, eax
jne 0x490cae
lea ecx, [ebp - 0x38]
call fcn.00446d10
jmp 0x490edd
push 0x21
lea eax, [ebp - 0x38]
push 0x596d3c
push eax
call fcn.00490370
add esp, 0xc
lea ecx, [ebp - 0x38]
test eax, eax
jne 0x490cd2
call fcn.00446d10
jmp 0x490edd
push 0x47
push 0x596d60
push ecx
call fcn.00490370
add esp, 0xc
or eax, eax
jne 0x490cf3
lea ecx, [ebp - 0x38]
call fcn.00446d10
jmp 0x490edd
push 0x29
lea edx, [ebp - 0x38]
push str.Ec
push edx
call fcn.00490370
add esp, 0xc
test eax, eax
jne 0x490d17
lea ecx, [ebp - 0x38]
call fcn.00446d10
jmp 0x490edd
push 0x5b
lea eax, [ebp - 0x38]
push 0x596dd8
push eax
call fcn.00490370
add esp, 0xc
lea ecx, [ebp - 0x38]
test eax, eax
jne 0x490d3b
call fcn.00446d10
jmp 0x490edd
push 0x6f
push 0x596e38
push ecx
call fcn.00490370
add esp, 0xc
test eax, eax
jne 0x490d5c
lea ecx, [ebp - 0x38]
call fcn.00446d10
jmp 0x490edd
push 0x101
lea edx, [ebp - 0x38]
push 0x596ea8
push edx
call fcn.00490370
add esp, 0xc
or eax, eax
jne 0x490d83
lea ecx, [ebp - 0x38]
call fcn.00446d10
jmp 0x490edd
push 0x7f
lea eax, [ebp - 0x38]
push 0x596fb0
push eax
call fcn.00490370
add esp, 0xc
lea ecx, [ebp - 0x38]
or eax, eax
jne 0x490da7
call fcn.00446d10
jmp 0x490edd
push 0x1d
push 0x597030
push ecx
call fcn.00490370
add esp, 0xc
test eax, eax
jne 0x490dc8
lea ecx, [ebp - 0x38]
call fcn.00446d10
jmp 0x490edd
push 0x49
lea edx, [ebp - 0x38]
push 0x597050
push edx
call fcn.00490370
add esp, 0xc
test eax, eax
jne 0x490dec
lea ecx, [ebp - 0x38]
call fcn.00446d10
jmp 0x490edd
push 0x33
lea eax, [ebp - 0x38]
push 0x59709c
push eax
call fcn.00490370
add esp, 0xc
lea ecx, [ebp - 0x38]
test eax, eax
jne 0x490e10
call fcn.00446d10
jmp 0x490edd
push 0x49
push 0x5970d0
push ecx
call fcn.00490370
add esp, 0xc
or eax, eax
jne 0x490e31
lea ecx, [ebp - 0x38]
call fcn.00446d10
jmp 0x490edd
push 0x2f
lea edx, [ebp - 0x38]
push 0x59711c
push edx
call fcn.00490370
add esp, 0xc
or eax, eax
jne 0x490e55
lea ecx, [ebp - 0x38]
call fcn.00446d10
jmp 0x490edd
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
or eax, eax
je 0x490c32
cmp eax, 0xffffffff
je 0x490c32
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 0x490ea4
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 1
cmp edx, dword [ebp - 0x20]
je 0x490ea7
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.00446d10
jmp 0x490edd
or esi, esi
je 0x490edd
push esi
call fcn.00481d51
add esp, 4
jmp 0x490edd
test ebx, ebx
je 0x490eed
cmp ebx, 0xffffffff
je 0x490eed
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x490f00
cmp eax, 0xffffffff
je 0x490f00
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