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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x4cdbf8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push 0x4b3140
push dword [esi + 8]
mov dword [ebp - 0x1d0], edi
call fcn.004370f0
add esp, 8
mov dword [ebp - 0x1cc], eax
cmp dword [ebp + 0x10], 0xf
jne 0x45632d
push 0
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
mov dword [ebp - 0x1d4], eax
test eax, eax
je 0x4563fa
xor ebx, ebx
test eax, eax
jle 0x4563fa
nop word [eax + eax]
push 0x12c
lea eax, [ebp - 0x130]
push eax
push ebx
push edi
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
test eax, eax
je 0x45631b
push 0
push 0
push 3
push 0
push 0
lea eax, [ebp - 0x130]
push SysReAllocString
push eax
call fcn.0041f350
add esp, 0x1c
mov dword [ebp - 0x1c8], eax
cmp eax, 0xffffffff
je 0x45631b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x1c4], eax
call fcn.00487397
add esp, 4
mov dword [esi + 0x2c], eax
lea ecx, [ebp - 0x134]
lea edi, [esi + 0x2c]
push 0
push ecx
push dword [ebp - 0x1c4]
push eax
push dword [ebp - 0x1c8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4562ee
mov eax, dword [ebp - 0x1c4]
cmp dword [ebp - 0x134], eax
jne 0x4562ee
push dword [esi + 0x20]
push 0xffffffffffffffff
push dword [esi + 8]
call fcn.0044a040
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esi + 8]
mov dword [ebp - 0x1c4], eax
call fcn.0044cb60
add esp, 0x1c
cmp dword [ebp - 0x1cc], 0
je 0x4562c2
push dword [ebp - 0x1c4]
call fcn.00457970
add esp, 4
jmp 0x4562e5
push 1
push dword [ebp - 0x1c4]
push 0xffffffffffffffff
push dword [esi + 8]
call fcn.00449b20
add esp, 0xc
push eax
push 0xffffffffffffffff
push dword [esi + 8]
call fcn.0044cb60
add esp, 0x10
mov eax, dword [esi + 0x3c]
push esi
call eax
add esp, 4
cmp dword [edi], 0
je 0x456309
push edi
call fcn.004201d0
push dword [edi]
call fcn.0048737c
add esp, 8
mov dword [edi], 0
push dword [ebp - 0x1c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x1d0]
inc ebx
cmp ebx, dword [ebp - 0x1d4]
jl 0x4561f0
jmp 0x4563fa
test byte [esi + 4], 4
mov dword [esi + 0x30], edi
jne 0x4563fa
push dword [esi + 0x20]
push 0xffffffffffffffff
push dword [esi + 8]
call fcn.0044a040
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esi + 8]
mov ebx, eax
call fcn.0044cb60
add esp, 0x1c
cmp dword [esi + 0x1c], 2
jne 0x456399
xor edi, edi
cmp dword [esi + 0x24], edi
jle 0x456382
mov eax, dword [esi + 0x28]
push 1
push dword [eax + edi*4]
push 0xffffffffffffffff
push dword [esi + 8]
call fcn.0044cb60
inc edi
add esp, 0x10
cmp edi, dword [esi + 0x24]
jl 0x456367
mov eax, dword [esi + 0x40]
push esi
call eax
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esi + 8]
call fcn.0044cb60
add esp, 0x14
cmp dword [ebp - 0x1cc], 0
je 0x4563ad
push ebx
call fcn.00457970
add esp, 4
jmp 0x4563cb
push 1
push ebx
push 0xffffffffffffffff
push dword [esi + 8]
call fcn.00449b20
add esp, 0xc
push eax
push 0xffffffffffffffff
push dword [esi + 8]
call fcn.0044cb60
add esp, 0x10
mov eax, dword [esi + 0x3c]
push esi
call eax
add esp, 4
test eax, eax
je 0x4563fa
push ebx
push 0xffffffffffffffff
push dword [esi + 8]
call fcn.00449b20
add esp, 0xc
test eax, eax
je 0x4563fa
push 0
push eax
push 0xffffffffffffffff
push dword [esi + 8]
call fcn.0044cb60
add esp, 0x10
push 0x8c
lea eax, [ebp - 0x1c0]
push 0
push eax
call fcn.00481c10
add esp, 0xc
mov dword [ebp - 0x1b8], 0xffffff94
lea eax, [ebp - 0x1c0]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
push 0x4e
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047fe8c
mov esp, ebp
pop ebp
ret