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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4a6ae652
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
mov edx, dword [0x4a6ce77c]
mov word [edx + 0xc2], 0x2e
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4a6ae607
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.4a60801c
cmp dword [ebp - 4], 0
je 0x4a6ae36b
lea eax, [ebp - 4]
call fcn.4a607b28
mov edi, eax
mov esi, dword [ebp - 4]
test esi, esi
je 0x4a6ae352
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x14]
push eax
push esi
push edi
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4a6ae36d
xor eax, eax
test al, al
je 0x4a6ae5f8
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a6ae381
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
cmp edx, eax
jne 0x4a6ae5f8
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], eax
push 0x7fffffff
mov esi, dword [0x4a6ce6ac]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x20]
add ecx, 0xa
mov eax, 0x4a6ae664
mov edx, dword [ebp - 4]
call esi
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jle 0x4a6ae5f8
xor eax, eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, ecx
xor ebx, ebx
mov eax, edx
fild dword [ebp - 0x18]
fdiv dword [0x4a6ae684]
fstp qword [eax]
wait
fild dword [ebp - 0x1c]
fdiv dword [0x4a6ae684]
fstp qword [eax + 8]
wait
mov dword [ebp - 0x28], ebx
fild dword [ebp - 0x28]
fdiv dword [0x4a6ae684]
fstp qword [eax + 0x10]
wait
inc ebx
add eax, 0x18
cmp ebx, 0x41
jne 0x4a6ae3de
inc dword [ebp - 0x1c]
add edx, 0x618
cmp dword [ebp - 0x1c], 0x41
jne 0x4a6ae3da
inc dword [ebp - 0x18]
add ecx, 0x18c18
cmp dword [ebp - 0x18], 0x41
jne 0x4a6ae3d3
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
dec ecx
mov edx, dword [ebp - 0x20]
inc edx
mov eax, dword [ebp - 4]
call fcn.4a607f00
mov esi, dword [0x4a6ce76c]
mov esi, dword [esi]
lea eax, [ebp - 8]
call esi
mov esi, dword [0x4a6ce650]
mov esi, dword [esi]
lea eax, [ebp - 8]
mov dl, 0x20
call esi
mov esi, dword [0x4a6ce568]
mov esi, dword [esi]
mov dl, 0x20
mov eax, dword [ebp - 8]
call esi
cmp eax, 6
jne 0x4a6ae5da
lea eax, [ebp - 0x30]
push eax
mov esi, dword [0x4a6ce5b8]
mov esi, dword [esi]
mov cl, 0x20
mov edx, 4
mov eax, dword [ebp - 8]
call esi
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.4a608314
mov edi, dword [ebp - 0x2c]
mov edx, dword [0x4a6ce77c]
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
call fcn.4a646748
imul esi, dword [ebp - 0x18], 0x3183
mov eax, dword [ebp - 0xc]
lea eax, [eax + esi*8]
imul edx, dword [ebp - 0x1c], 0xc3
lea eax, [eax + edx*8]
lea edx, [ebx + ebx*2]
fstp qword [eax + edx*8]
wait
lea eax, [ebp - 0x38]
push eax
mov edi, dword [0x4a6ce5b8]
mov edi, dword [edi]
mov cl, 0x20
mov edx, 5
mov eax, dword [ebp - 8]
call edi
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call fcn.4a608314
mov edi, dword [ebp - 0x34]
mov edx, dword [0x4a6ce77c]
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
call fcn.4a646748
mov eax, dword [ebp - 0xc]
lea eax, [eax + esi*8]
imul edx, dword [ebp - 0x1c], 0xc3
lea eax, [eax + edx*8]
lea edx, [ebx + ebx*2]
fstp qword [eax + edx*8 + 8]
wait
lea eax, [ebp - 0x40]
push eax
mov edi, dword [0x4a6ce5b8]
mov edi, dword [edi]
mov cl, 0x20
mov edx, 6
mov eax, dword [ebp - 8]
call edi
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
call fcn.4a608314
mov edi, dword [ebp - 0x3c]
mov edx, dword [0x4a6ce77c]
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
call fcn.4a646748
mov eax, dword [ebp - 0xc]
lea eax, [eax + esi*8]
imul edx, dword [ebp - 0x1c], 0xc3
lea eax, [eax + edx*8]
lea edx, [ebx + ebx*2]
fstp qword [eax + edx*8 + 0x10]
wait
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x41
jne 0x4a6ae59a
xor eax, eax
mov dword [ebp - 0x18], eax
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x41
jne 0x4a6ae59a
xor eax, eax
mov dword [ebp - 0x1c], eax
inc ebx
cmp ebx, 0x41
je 0x4a6ae5da
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
push 0x7fffffff
mov esi, dword [0x4a6ce6ac]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x20]
add ecx, 0xa
mov eax, 0x4a6ae664
mov edx, dword [ebp - 4]
call esi
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4a6ae5cd
mov dword [ebp - 0x24], 0x7fffffff
cmp dword [ebp - 0x24], 0x7fffffff
jne 0x4a6ae43a
cmp ebx, 0x41
je 0x4a6ae5f4
cmp dword [ebp - 0x18], 0x40
jne 0x4a6ae5f0
cmp dword [ebp - 0x1c], 0x40
jne 0x4a6ae5f0
cmp ebx, 0x40
je 0x4a6ae5f4
xor eax, eax
jmp 0x4a6ae5f6
mov al, 1
mov ebx, eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4a6ae607
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6ae659
lea eax, [ebp - 0x40]
call fcn.4a6075ac
lea eax, [ebp - 0x3c]
call fcn.4a607588
lea eax, [ebp - 0x38]
call fcn.4a6075ac
lea eax, [ebp - 0x34]
call fcn.4a607588
lea eax, [ebp - 0x30]
call fcn.4a6075ac
lea eax, [ebp - 0x2c]
call fcn.4a607588
lea eax, [ebp - 8]
mov edx, 2
call fcn.4a607618
ret