Function at 0x10016108
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071ab4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100164aa
lea eax, [ebp + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x1001649e
mov dword [ebp - 0x50], 0x6f21
mov dword [ebp - 0x64], 0x1000b710
cmp dword [ebp - 0x50], 0x72c9
jle 0x10016205
and dword [ebp - 0x24], 0
jmp 0x10016175
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x1107
jge 0x10016205
and dword [ebp - 0x20], 0
jmp 0x1001618f
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2c2
jge 0x10016200
and dword [ebp - 0x2c], 0
jmp 0x100161a5
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x37af
jge 0x100161fe
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
sar eax, cl
xor eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
lea ecx, [ebp - 0xd0]
call fcn.1000e66e
pop ecx
pop ecx
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
call fcn.10019014
push eax
call fcn.10058c43
pop ecx
lea ecx, [ebp - 0xd0]
call fcn.1001900a
jmp 0x1001619e
jmp 0x10016188
jmp 0x1001616e
and dword [ebp - 4], 0
cmp dword [ebp - 0x50], 0x6c01
jge 0x1001621b
push dword [ebp - 0x64]
call fcn.10058c43
pop ecx
jmp 0x10016237
or dword [ebp - 4], 0xffffffff
jmp 0x10016241
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x34], 0xfffffff7
mov dword [ebp - 0x18], 7
mov dword [ebp - 0xa0], 0xbe856dfc
mov dword [ebp - 0x9c], 0xbe856dfc
mov dword [ebp - 0x98], 0xbe856dfc
mov dword [ebp - 0x94], 0xbe856dfc
lea ecx, [ebp - 0x2d]
call fcn.100193ca
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xb8]
call fcn.100193cd
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x84]
call fcn.10019379
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0
jmp 0x100162c7
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jge 0x100162da
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0x1c], 0xffffffff
jmp 0x100162c0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x5c]
mov dword [ebp + eax - 0x1c], ecx
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x18]
jle 0x10016302
mov dword [ebp - 0x44], 1
jmp 0x10016306
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0x9f6d4a0d
je 0x10016319
xor eax, eax
jne 0x10016319
and dword [ebp - 0x78], 0
jmp 0x10016320
mov dword [ebp - 0x78], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xac], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1c]
mov dword [ebp - 0xa4], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x1c], 0
je 0x10016354
or eax, 0xffffffff
je 0x10016354
mov dword [ebp - 0x54], 1
jmp 0x10016358
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x18]
jg 0x10016373
mov dword [ebp - 0x4c], 1
jmp 0x10016377
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
sub eax, 3
mov esi, 0x41e55969
sub esi, eax
push 1
lea ecx, [ebp - 0x84]
call fcn.100193bb
mov dword [eax], esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0x34], 0
jne 0x100163d2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1c]
cmp dword [ebp - 0x14], eax
jl 0x100163c0
mov dword [ebp - 0x3c], 1
jmp 0x100163c4
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x3c], eax
je 0x100163d2
and dword [ebp - 0x68], 0
jmp 0x100163d9
mov dword [ebp - 0x68], 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xb0], eax
or eax, 0xffffffff
jae 0x100163f0
mov dword [ebp - 0x40], 1
jmp 0x100163f4
and dword [ebp - 0x40], 0
push 1
lea ecx, [ebp - 0x84]
call fcn.100193bb
mov ecx, dword [ebp - 0x40]
imul ecx, dword [eax]
add ecx, 0xdbb7
mov dword [ebp - 0x48], ecx
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x48]
mov dword [ebp + eax - 0x1c], ecx
mov eax, dword [ebp - 0x48]
add eax, 0xb5fb
cmp eax, dword [ebp - 0x34]
je 0x10016439
cmp dword [ebp - 0x14], 0
je 0x10016439
mov dword [ebp - 0x38], 1
jmp 0x1001643d
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
add eax, 0x21b78cd9
cmp dword [ebp - 0x18], eax
jne 0x10016453
mov dword [ebp - 0x58], 1
jmp 0x10016457
and dword [ebp - 0x58], 0
push 1
lea ecx, [ebp - 0x84]
call fcn.100193bb
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [eax]
je 0x10016474
mov dword [ebp - 0x60], 1
jmp 0x10016478
and dword [ebp - 0x60], 0
mov esi, dword [ebp - 0x60]
add esi, 9
push 3
lea ecx, [ebp - 0x84]
call fcn.100193bb
mov dword [eax], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.1001939f
jmp 0x100164a8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x100164bc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
push 0
push dword [ebp - 0x6c]
call fcn.10016b9c
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret