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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529f81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
mov dword [ebp - 0x254], ecx
lea ecx, [ebp - 0x230]
call fcn.004070d0
mov dword [ebp - 4], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.0049e730
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x230]
call fcn.00407020
lea ecx, [ebp - 0x230]
call fcn.00477060
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x230]
call fcn.00407020
push 0x2e
lea ecx, [ebp - 0x230]
call fcn.004073c0
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
je 0x47c688
mov eax, dword [ebp - 0x228]
push eax
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004075c0
mov dword [ebp - 0x258], eax
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404380
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.004070b0
lea ecx, [ebp - 0x238]
call fcn.004070d0
mov byte [ebp - 4], 2
fld1
fstp qword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp - 0x254]
call fcn.0047c150
test eax, eax
jne 0x47c6fb
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004070b0
mov eax, dword [ebp - 0x244]
jmp 0x47c87c
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x238]
call fcn.00477060
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0xffffffff
jne 0x47c764
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004070b0
mov eax, dword [ebp - 0x248]
jmp 0x47c87c
mov dword [ebp - 0x234], 0
push 0
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x47c83c
mov dword [ebp - 0x23c], 0
push 0
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xa
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040a400
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x47c832
mov edx, dword [ebp - 0x23c]
cmp edx, dword [ebp - 0x10]
jne 0x47c832
cmp dword [ebp + 0x14], 0
je 0x47c7e6
mov eax, dword [ebp + 0x14]
fld qword [ebp - 0x1c]
fstp qword [eax]
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040b3d0
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004070b0
mov eax, dword [ebp - 0x24c]
jmp 0x47c87c
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0040b3d0
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x250], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004070b0
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10