Function at 0x1001266e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1001283c
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10014e7f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
push 1
mov ecx, dword [ebp - 0x18]
call fcn.10014e7f
mov eax, dword [eax]
add eax, 0xfff7
cmp esi, eax
jg 0x10012710
mov dword [ebp - 0x20], 1
jmp 0x10012714
and dword [ebp - 0x20], 0
push 1
mov ecx, dword [ebp - 0x18]
call fcn.10014e7f
cmp dword [eax], 0x7e9f
jne 0x1001272f
mov dword [ebp - 0x1c], 1
jmp 0x10012733
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [eax]
cmp dword [ebp - 0x20], ecx
jne 0x1001274e
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1001274e
and dword [ebp - 0x10], 0
jmp 0x10012755
mov dword [ebp - 0x10], 1
push 0
mov ecx, dword [ebp - 0x5c]
call fcn.10014e7f
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
imul esi, dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10014e7f
cmp esi, dword [eax]
jne 0x10012782
mov dword [ebp - 0x24], 1
jmp 0x10012786
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0xfffffffb
jne 0x10012795
mov dword [ebp - 0x28], 1
jmp 0x10012799
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10014e7f
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax]
je 0x100127b6
mov dword [ebp - 0x2c], 1
jmp 0x100127ba
and dword [ebp - 0x2c], 0
mov esi, dword [ebp - 0x2c]
neg esi
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10014e7f
cmp esi, dword [eax]
jge 0x100127d6
mov dword [ebp - 0x30], 1
jmp 0x100127da
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ebp - 0x30]
cmp eax, 0x2245
jl 0x100127f2
mov dword [ebp - 0x34], 1
jmp 0x100127f6
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
imul eax, dword [ebp - 0x34]
cmp eax, 1
jle 0x1001280d
mov dword [ebp - 0x38], 1
jmp 0x10012811
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0x30b9
jl 0x10012823
mov dword [ebp - 0x3c], 1
jmp 0x10012827
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 8]
imul eax, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x10012846
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
mov esp, ebp
pop ebp
ret