Function at 0x47ff40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c24d0
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x4eb018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x304], ecx
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2cc], 0
call fcn.0042a4b0
push eax
lea ecx, [ebp - 0x94]
call fcn.00439740
mov dword [ebp - 4], 0
call fcn.0042a4c0
mov ecx, eax
call fcn.0043a900
movzx eax, al
test eax, eax
je 0x4800ed
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x94]
call fcn.00439db0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00439b90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0xffffffff
jne 0x48000d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00439920
jmp 0x4802b4
push 0
mov edx, dword [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0
jne 0x480042
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00439920
jmp 0x4802b4
mov dword [ebp - 0x2dc], 0
mov eax, dword [ebp - 0x2cc]
push eax
call fcn.00425578
add esp, 4
mov dword [ebp - 0x2e8], eax
mov ecx, dword [ebp - 0x2e8]
mov dword [ebp - 0x2c8], ecx
push 0
lea edx, [ebp - 0x2dc]
push edx
mov eax, dword [ebp - 0x2cc]
push eax
mov ecx, dword [ebp - 0x2c8]
push ecx
mov edx, dword [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2dc]
cmp ecx, dword [ebp - 0x2cc]
je 0x4800e8
mov edx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2ec], edx
mov eax, dword [ebp - 0x2ec]
push eax
call fcn.004250db
add esp, 4
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00439920
jmp 0x4802b4
jmp 0x48029a
call fcn.0042a4c0
push eax
lea ecx, [ebp - 0x94]
call fcn.00439d80
mov dword [ebp - 0x2d0], 0
call fcn.0042a9c0
movzx ecx, al
test ecx, ecx
je 0x480121
call fcn.0042a4d0
mov dword [ebp - 0x2d0], eax
jmp 0x48013f
push 2
push 0
lea ecx, [ebp - 0x94]
call fcn.00439b90
push eax
call fcn.00457680
add esp, 0xc
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x2d0], 0
jne 0x48015f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00439920
jmp 0x4802b4
lea edx, [ebp - 0x2c4]
push edx
lea eax, [ebp - 0x2f4]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2d0]
push edx
call fcn.00456b60
add esp, 0x14
test eax, eax
je 0x48019d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00439920
jmp 0x4802b4
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0
jne 0x4801c9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00439920
jmp 0x4802b4
mov ecx, dword [ebp - 0x2cc]
push ecx
call fcn.00425578
add esp, 4
mov dword [ebp - 0x2f0], eax
mov edx, dword [ebp - 0x2f0]
mov dword [ebp - 0x2c8], edx
push 3
mov eax, dword [ebp - 0x2cc]
push eax
mov ecx, dword [ebp - 0x2c8]
push ecx
mov edx, dword [ebp - 0x2f4]
push edx
mov eax, dword [ebp - 0x2d0]
push eax
call fcn.00457ce0
add esp, 0x14
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
je 0x48027f
cmp dword [ebp - 0x2e0], 0x600
je 0x48027f
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2f8], ecx
mov edx, dword [ebp - 0x2f8]
push edx
call fcn.004250db
add esp, 4
mov dword [ebp - 0x2c8], 0
call fcn.0042a9c0
movzx eax, al
test eax, eax
jne 0x48026b
mov ecx, dword [ebp - 0x2d0]
push ecx
call fcn.00456890
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00439920
jmp 0x4802b4
call fcn.0042a9c0
movzx edx, al
test edx, edx
jne 0x48029a
mov eax, dword [ebp - 0x2d0]
push eax
call fcn.00456890
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00439920
xor ecx, ecx
jne 0x47ff85
cmp dword [ebp - 0x2c8], 0
jne 0x4803aa
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0xffffffff
jne 0x4802f1
jmp 0x4803aa
push 0
mov eax, dword [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0
jne 0x480314
jmp 0x4803aa
mov dword [ebp - 0x2e4], 0
mov ecx, dword [ebp - 0x2cc]
push ecx
call fcn.00425578
add esp, 4
mov dword [ebp - 0x2fc], eax
mov edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x2c8], edx
push 0
lea eax, [ebp - 0x2e4]
push eax
mov ecx, dword [ebp - 0x2cc]
push ecx
mov edx, dword [ebp - 0x2c8]
push edx
mov eax, dword [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x2d8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2e4]
cmp edx, dword [ebp - 0x2cc]
je 0x4803a3
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x300], eax
mov ecx, dword [ebp - 0x300]
push ecx
call fcn.004250db
add esp, 4
mov dword [ebp - 0x2c8], 0
jmp 0x4803aa
cmp dword [ebp - 0x2c8], 0
jne 0x4803b7
xor eax, eax
jmp 0x4803f9
mov edx, dword [ebp - 0x2cc]
push edx
mov eax, dword [ebp - 0x2c8]
push eax
mov ecx, dword [ebp - 0x304]
call fcn.00480420
mov dword [ebp - 0x30c], eax
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x308], ecx
push 1
mov edx, dword [ebp - 0x308]
push edx
call fcn.0042556a
add esp, 8
mov eax, dword [ebp - 0x30c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004250ca
mov esp, ebp
pop ebp
ret 4