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

Disassembly:
push 0xffffffffffffffff
push 0x460c6e
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x47c824]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47c824]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc0]
cmp byte [ebp + 0x7d], 1
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x28], eax
jne 0x41640b
or eax, 0xffffffff
jmp 0x416741
cmp byte [ebp + 0x7c], 1
jne 0x41641b
mov eax, 0xfffffffe
jmp 0x416741
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [ebp + 0x80], eax
jne 0x416449
lea eax, [edi - 3]
jmp 0x416741
push edi
lea ecx, [esp + 0x18]
push ecx
mov esi, 0x20
push esi
lea edx, [esp + 0x38]
push edx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x416729
cmp dword [esp + 0x14], esi
jne 0x416729
cmp byte [esp + 0x2c], 0x67
jne 0x416715
cmp byte [esp + 0x2d], 0x70
jne 0x416715
cmp byte [esp + 0x2e], 0x61
jne 0x416715
cmp byte [esp + 0x2f], 0x6b
jne 0x416715
cmp dword [esp + 0x30], eax
je 0x4164bf
mov eax, dword [ebp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x26]
jmp 0x41673b
cmp dword [esp + 0x34], esi
je 0x4164dc
mov ecx, dword [ebp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffff9
jmp 0x41673b
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
imul edx, edx, 0x5c
add edx, dword [esp + 0x38]
mov dword [ebp + 0x90], eax
cmp eax, edx
je 0x416512
mov eax, dword [ebp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x90], edi
mov eax, 0xfffffff8
jmp 0x41673b
mov edx, dword [ebp + 0x80]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jne 0x416547
mov eax, dword [ebp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x90], edi
mov eax, 0xfffffff7
jmp 0x41673b
mov ecx, dword [esp + 0x24]
push 1
push edi
push edi
push ecx
call fcn.00448ea0
xor ecx, ecx
add esi, eax
mov eax, dword [esp + 0x3c]
adc ecx, edx
mov edx, dword [esp + 0x38]
mov dword [ebp + 0x88], esi
mov esi, eax
imul esi, esi, 0x5c
mov dword [ebp + 0x8c], ecx
mov edi, dword [ebp + 0x8c]
xor ecx, ecx
add edx, esi
cmp edi, ecx
jg 0x416598
jl 0x41658e
mov ecx, dword [ebp + 0x88]
cmp ecx, edx
jae 0x416598
mov eax, 0xfffffff6
jmp 0x416741
xor ecx, ecx
mov ebx, eax
mov edx, 0x5c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420ee3
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
xor eax, eax
cmp edi, eax
mov dword [esp + 0xb8], eax
je 0x4165da
push fcn.004107c0
push ebx
push 0x5c
push edi
call fcn.00411830
mov dword [esp + 0x1c], edi
jmp 0x4165de
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x18]
push eax
push esi
or edi, 0xffffffff
mov dword [esp + 0xc4], edi
mov ecx, dword [ebp + 0x80]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x4166e8
cmp dword [esp + 0x14], esi
jne 0x4166e8
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x20], 0
jbe 0x416689
mov esi, ebx
mov dword [esp + 0x18], ebx
lea ebx, [ebx]
mov ecx, 0x17
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
movsx eax, byte [esp + 0x4c]
sub eax, 1
je 0x41664f
sub eax, 1
jne 0x416669
lea ebx, [ebp + 0x64]
jmp 0x416660
lea edx, [ebp + 0x58]
lea ecx, [esp + 0x8c]
call fcn.004171e0
mov ebx, eax
lea eax, [esp + 0x4c]
call fcn.00417330
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
add eax, 1
add esi, 0x5c
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], esi
jb 0x416630
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.00420ede
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov dword [ebp + 0xa4], eax
mov eax, dword [ebp + 0x88]
add esp, 4
mov dword [ebp + 0xa0], edx
xor edx, edx
sub eax, ecx
mov ecx, dword [ebp + 0x8c]
sbb ecx, edx
mov dword [ebp + 0x98], eax
mov eax, dword [esp + 0x28]
push 0x3f
mov byte [ebp + 0x7d], 1
mov dword [ebp + 0x9c], ecx
call fcn.004171b0
push eax
add ebp, 8
push ebp
call fcn.00443ea0
add esp, 0xc
xor eax, eax
jmp 0x416741
mov edx, dword [ebp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov dword [ebp + 0x80], edi
mov dword [ebp + 0x90], 0
call fcn.00420ede
add esp, 4
mov eax, 0xfffffff5
jmp 0x416741
mov eax, dword [ebp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffb
jmp 0x41673b
mov ecx, dword [ebp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffc
mov dword [ebp + 0x80], ebx
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00441b4d
add esp, 0xa8
ret 8