Function at 0x456504
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov edi, eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [0x49bdd0], eax
mov eax, dword [ebp + 0xc]
mov dword [0x49bdd4], eax
mov byte [0x49bdf5], 0
mov al, byte [ebp - 1]
mov byte [0x49be2d], al
mov ecx, 0x8000000
mov edx, 0x80000000
mov eax, edi
call fcn.0040eba4
mov esi, eax
cmp esi, 0xffffffff
jne 0x456563
mov edx, edi
mov ax, 1
call fcn.0040de10
jmp 0x4567e3
mov eax, dword [0x48d838]
mov eax, dword [eax + 0x88]
push eax
mov eax, edi
call fcn.0040fb28
push eax
call sub.kernel32.dll_lstrcmpiA
test eax, eax
sete byte [0x49bdda]
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
push 4
push 0x1000
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [0x49be0c], eax
cmp dword [0x49be0c], 0
jne 0x4565ce
mov dword [ebp - 0xc], ebx
fild dword [ebp - 0xc]
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.00412abc
mov edx, eax
mov ax, 0xb
call fcn.0040de10
jmp 0x4567e3
push ebx
mov eax, dword [0x49be0c]
push eax
push esi
call sub.kernel32.dll__lread
mov edx, dword [0x48d498]
mov dword [edx], eax
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x48d498]
cmp ebx, dword [eax]
jle 0x456613
mov edx, edi
mov ax, 2
call fcn.0040de10
push 0x4000
push ebx
mov eax, dword [0x49be0c]
push eax
call sub.kernel32.dll_VirtualFree_1
jmp 0x4567e3
push 4
push 0x1000
push 0x400
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [0x49bde8], eax
cmp dword [0x49bde8], 0
jne 0x456650
push 0
push 0x400
call fcn.00412abc
mov edx, eax
mov ax, 0xb
call fcn.0040de10
jmp 0x4567e3
mov dword [0x49bdec], 0x400
xor eax, eax
mov dword [0x49bdf0], eax
cmp byte [ebp - 2], 0
je 0x45666e
mov byte [0x49bdd8], 0
cmp byte [ebp - 1], 0
je 0x45668d
mov eax, dword [0x48d930]
mov eax, dword [eax]
mov edx, dword [0x48d524]
mov eax, dword [edx + eax*4 - 4]
add eax, 0xc
call fcn.00428760
mov dl, byte [ebp - 2]
mov eax, dword [0x49be0c]
call fcn.004572a4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x4567b3
mov eax, dword [0x48d274]
cmp byte [eax], 0
jne 0x4566c9
mov ax, 0x232
call fcn.0040bc04
mov edx, 1
call fcn.00411d74
jmp 0x4567b3
mov eax, dword [0x48d274]
movzx eax, byte [eax]
mov edx, dword [0x48d558]
mov edx, dword [edx + eax*4 - 4]
mov eax, dword [0x48da44]
call fcn.00405c48
mov eax, dword [0x48da44]
call fcn.0040cd5c
mov eax, dword [0x48da44]
call fcn.0040cd5c
push 0x4567f0
mov eax, dword [0x48da44]
push eax
call sub.kernel32.dll_lstrcatA
mov edx, dword [0x48d748]
mov edx, dword [edx]
add edx, dword [0x49be0c]
mov eax, dword [0x49be0c]
call fcn.0040c35c
mov edx, dword [0x48d498]
mov dword [edx], eax
mov eax, dword [0x48d498]
fild dword [eax]
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.004123c0
push eax
mov eax, dword [0x48da44]
push eax
call sub.kernel32.dll_lstrcatA
push 0x4567f8
mov eax, dword [0x48da44]
push eax
call sub.kernel32.dll_lstrcatA
mov edx, dword [0x48d748]
mov edx, dword [edx]
add edx, dword [0x49be0c]
mov eax, dword [0x48d830]
mov cx, 0x64
call fcn.00405c70
mov eax, dword [0x48d830]
mov dl, 0x20
call fcn.00405cf8
test eax, eax
je 0x456787
mov byte [eax], 0
mov eax, dword [0x48d830]
push eax
mov eax, dword [0x48da44]
push eax
call sub.kernel32.dll_lstrcatA
mov eax, dword [0x48da44]
mov dl, 9
call fcn.0040fa38
mov eax, dword [0x48da44]
mov edx, 1
call fcn.00411d74
cmp byte [ebp - 1], 0
je 0x4567d2
mov eax, dword [0x48d930]
mov eax, dword [eax]
mov edx, dword [0x48d524]
mov eax, dword [edx + eax*4 - 4]
add eax, 0xc
call fcn.00428820
push 0x4000
push ebx
mov eax, dword [0x49be0c]
push eax
call sub.kernel32.dll_VirtualFree_1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8