Function at 0x1002939d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push esi
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x1002966b
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x10029651
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xa0], 0x23f6
cmp dword [ebp - 0xa0], 0x9f7
jge 0x100295a2
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x10063fd4
call fcn.1004261a
pop ecx
pop ecx
xor ecx, ecx
mov eax, dword [ebp - 0xc]
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003d658
pop ecx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov eax, dword [ebp - 0xc]
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003d658
pop ecx
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x14], eax
and dword [ebp - 0x1c], 0
jmp 0x10029489
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jge 0x100294b3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*4]
push eax
push 0x10063fd4
call fcn.1004261a
pop ecx
pop ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
and dword [ecx + eax*4], 0
jmp 0x10029482
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
jmp 0x100294c7
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x10029508
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
mov eax, dword [ecx + eax*4 - 4]
cmp eax, dword [esi + edx*4]
jg 0x10029502
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [edx + ecx*4], eax
jmp 0x10029506
and dword [ebp - 4], 0
jmp 0x100294c0
and dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
dec eax
dec eax
mov dword [ebp - 8], eax
jmp 0x1002951d
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x1002955c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0x20]
mov eax, dword [ecx + eax*4]
cmp eax, dword [esi + edx*4 + 4]
jl 0x10029556
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [edx + ecx*4], eax
jmp 0x1002955a
and dword [ebp - 4], 0
jmp 0x10029516
and dword [ebp - 0x30], 0
and dword [ebp - 0x28], 0
jmp 0x1002956d
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0xc]
jge 0x10029591
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
cmp eax, dword [ebp - 0x30]
jle 0x1002958f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x30], eax
jmp 0x10029566
mov eax, dword [ebp - 0x30]
inc eax
push eax
push 0x10065be8
call fcn.100420be
pop ecx
pop ecx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x100295cd
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jg 0x100295cd
and dword [ebp - 0x38], 0
jmp 0x100295d4
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, dword [ebp - 0x38]
cmp eax, 0x5fff
jg 0x100295ec
mov dword [ebp - 0x40], 1
jmp 0x100295f0
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
jl 0x10029603
mov dword [ebp - 0x34], 1
jmp 0x10029607
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0xffff
jbe 0x10029619
mov dword [ebp - 0x3c], 1
jmp 0x1002961d
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp dword [ebp - 0x3c], eax
jg 0x10029630
mov dword [ebp - 0x44], 1
jmp 0x10029634
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
imul eax, dword [ecx]
sub eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
sub eax, dword [ecx]
mov ecx, dword [ebp - 0x98]
mov dword [ecx], eax
jmp 0x10029666
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [eax], 0xffffffff
jmp 0x10029712
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x84], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x100296b2
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x100296b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x10029712
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0
jmp 0x100296f2
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 2
jge 0x10029712
mov eax, dword [ebp - 0x2c]
push dword [eax]
mov ecx, dword [ebp - 0x9c]
call fcn.100099f9
mov dword [eax], 0xc493a780
jmp 0x100296e7
pop esi
mov esp, ebp
pop ebp
ret