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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x64793f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x20], ecx
jne 0x5466e6
mov eax, dword [0x685244]
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x24], edi
je 0x54688e
mov dword [esp + 0x14], edi
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x1bc], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00614c96
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x546769
mov dword [esp + 0x34], ebx
push 0
lea ecx, [esp + 0x30]
push ecx
push esi
push ebx
push edi
mov byte [esp + 0x1c8], 1
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x54678d
push ebx
call fcn.00616a81
add esp, 4
test edi, edi
je 0x546774
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebx]
add edi, 8
lea eax, [edi + ebx]
mov dword [esp + 0x18], eax
mov eax, dword [eax - 4]
push eax
mov dword [esp + 0x14], eax
call fcn.00614c96
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x5467e4
mov edx, dword [esp + 0x1c]
push edx
call fcn.00616a81
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x5467cb
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ebx
sub esi, edi
push esi
push ecx
mov byte [esp + 0x1c4], 2
call fcn.00558ca0
mov edx, dword [esp + 0x20]
mov ecx, dword [0x8b481c]
add esp, 0x10
push 3
push 0
push edx
push ebx
call fcn.00558c10
mov eax, 0xb21642c9
mul dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov esi, edx
shr esi, 8
mov ecx, esi
imul ecx, ecx, 0x170
push ecx
mov dword [eax + 4], esi
call fcn.00614c96
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
mov byte [esp + 0x1b4], 3
je 0x546866
push 0x5465e0
push esi
push 0x170
push edi
call fcn.00401000
jmp 0x546868
xor edi, edi
test edi, edi
mov eax, dword [esp + 0x20]
mov dword [eax], edi
jne 0x5468a7
push ebx
call fcn.00616a81
mov edx, dword [esp + 0x20]
push edx
call fcn.00616a81
add esp, 8
lea ecx, [esp + 0x14]
call fcn.004f0ec0
xor al, al
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0x18], 0
jbe 0x54695f
lea ecx, [ebx + 0x120]
xor eax, eax
mov dword [esp + 0x14], ecx
jmp 0x5468d0
mov edx, dword [esp + 0x20]
mov esi, ebx
mov ecx, 0x48
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [edx]
add edi, eax
mov ecx, 0x48
lea esi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
sub edi, 0x120
mov dword [esp + 0x10], edi
mov ecx, 0x14
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx]
lea edi, [eax + ecx + 0x120]
mov ecx, 0x14
lea esi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub esi, 0x50
add edi, 0x170
add ebx, 0x170
mov dword [esp + 0x10], esi
mov esi, dword [edx + 4]
inc ecx
add eax, 0x170
cmp ecx, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
jb 0x5468d0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x546970
push eax
call fcn.00616a81
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call fcn.00616a81
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x54698c
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4