Function at 0x4a66b014
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4a66b01d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4a66b03e
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4a66b049
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x4a66b29e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
push 0
push 0x1f4
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp byte [ebp + 8], 0
je 0x4a66b0a5
push 0
push 0x1f4
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x330]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp byte [ebp + 0xc], 0
je 0x4a66b0ea
push 0
push 0x1f4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x338]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0
push 0x64
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x340]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
jmp 0x4a66b10a
push 0
push 0x1388
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x338]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.4a608f2c
push eax
mov eax, dword [ebp + 0x18]
mov ecx, 1
mov edx, dword [0x4a60e224]
call fcn.4a609150
add esp, 4
mov eax, dword [ebp - 0xc]
call fcn.4a608f2c
push eax
mov eax, dword [ebp + 0x14]
mov ecx, 1
mov edx, dword [0x4a60e1c4]
call fcn.4a609150
add esp, 4
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
call fcn.4a608f38
mov esi, eax
test esi, esi
jl 0x4a66b232
inc esi
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a66b19a
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*4]
call fcn.4a60824c
push eax
call sub.kernel32.dll_CreateFileW_1
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
mov dword [edx + ebx*4], eax
jmp 0x4a66b1d2
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + ebx*4]
mov ecx, 0
call fcn.4a608094
mov eax, dword [ebp - 0x24]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_CreateFileA
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
mov dword [edx + ebx*4], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edi, dword [eax + ebx*4]
cmp edi, 0xffffffff
je 0x4a66b21e
mov eax, dword [ebp + 0x10]
inc dword [eax]
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov edx, dword [ebp + 0x14]
mov edx, dword [edx]
mov dword [edx + ebx*4], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
shr eax, 4
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x350]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
jmp 0x4a66b22a
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [eax + ebx*4], 0xffffffff
inc ebx
dec esi
jne 0x4a66b164
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jg 0x4a66b244
cmp dword [ebp - 0xc], 0
je 0x4a66b244
xor ebx, ebx
jmp 0x4a66b246
mov bl, 1
push 0
push 0x3e8
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x358]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a66b2a5
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.4a6075e8
lea eax, [ebp - 0x24]
call fcn.4a6075ac
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.4a6075e8
ret