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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48083a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4c3408]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
or ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x466699
cmp byte [eax], 0
je 0x466699
mov ecx, 0x4c5edc
call fcn.00420db0
mov dword [ebp - 4], edi
push 0x4c5edc
lea ecx, [ebp - 0x34]
call fcn.00420900
mov byte [ebp - 4], 1
nop
lea ecx, [ebp - 0x34]
call fcn.00421400
mov esi, eax
test esi, esi
je 0x4664c2
mov ecx, dword [ebp + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4664b1
test dl, dl
je 0x4664ad
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4664b1
add eax, 2
add ecx, 2
test dl, dl
jne 0x466491
xor eax, eax
jmp 0x4664b6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x466480
mov edi, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x4665f0
xor esi, esi
mov dword [ebp - 0x24], esi
nop
cmp esi, 0x32
jge 0x46650b
cmp ebx, 0xffffffff
jne 0x466514
test esi, esi
jle 0x4664e6
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
mov dword [ebp - 0x24], esi
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call fcn.00464b00
mov ebx, eax
mov dword [ebp - 0x18], ebx
jmp 0x4664d0
cmp ebx, 0xffffffff
je 0x4665f0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.0043a304
mov dword [ebp - 0x14], eax
push esi
push 0
push eax
call fcn.0043f7e0
add esp, 0x10
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4665e0
push 0x10c
call fcn.0043a2d1
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x466592
push 0x10c
push 0
push esi
call fcn.0043f7e0
add esp, 0xc
mov ecx, esi
call fcn.00464610
mov edi, eax
jmp 0x466594
xor edi, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], edi
push 0x103
push dword [ebp + 8]
push edi
call fcn.0044db60
add esp, 0xc
push dword [ebp - 0x14]
lea ecx, [edi + 0x104]
call fcn.00428c20
push dword [ebp - 0x14]
lea ecx, [edi + 0x108]
call fcn.00428c20
lea ecx, [edi + 0x108]
call fcn.00429b50
push edi
mov ecx, 0x4c5edc
call fcn.00420c50
jmp 0x4665e3
mov edi, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004209e0
mov dword [ebp - 4], 0xffffffff
jmp 0x466629
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x466640
push eax
call fcn.0043a30d
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x46666d
mov ecx, 0x4c5edc
call fcn.00421530
cmp ebx, 0xffffffff
je 0x466683
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4