Function at 0x10020540
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x10588520]
xor eax, ebp
mov dword [esp + 0x88], eax
mov dword [esp + 0x2c], edx
cmp ecx, edx
je 0x10021067
mov edi, dword [ebp + 0x10]
mov eax, ecx
imul eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
imul eax, edi
add eax, eax
push eax
call fcn.1037f2d2
add esp, 4
test eax, eax
je 0x10021053
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
test edi, edi
jle 0x10021041
mov edx, dword [ebp + 0xc]
mov esi, edx
and esi, 3
test esi, esi
mov eax, 4
cmovne eax, esi
lea ecx, [edx - 1]
mov edi, edx
sub edi, eax
mov eax, ecx
sub eax, edi
mov dword [esp + 0x4c], eax
mov ebx, edx
and ebx, 0xfffffffc
mov dword [esp + 4], ecx
sub ecx, ebx
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x1c]
add eax, eax
mov dword [esp + 0x1c], eax
mov ecx, edx
mov eax, dword [esp + 0x2c]
imul ecx, eax
add ecx, ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*8]
add eax, 0xfffffff6
mov dword [esp + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmm1, xmmword [0x103985e0]
lea eax, [edx - 2]
mov dword [esp + 0x10], eax
lea eax, [edi + edi]
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], edi
lea eax, [edi*4]
mov dword [esp + 0x3c], eax
lea eax, [ebx*4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], ebx
lea eax, [ebx + ebx]
mov dword [esp + 0x34], eax
lea eax, [esi*4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], esi
lea eax, [esi + esi]
mov dword [esp + 0x54], eax
lea eax, [eax + eax*2]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x10020694
mov ecx, dword [esp + 0x20]
inc ecx
mov esi, dword [esp + 8]
add esi, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
add edx, dword [esp + 0x5c]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], ecx
cmp ecx, eax
je 0x10021041
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
cmp dword [esp + 0x30], 0x19
ja case.0x100206c8.3
mov eax, dword [esp + 0x20]
imul eax, dword [ebp + 0xc]
mov edx, eax
imul edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
lea edi, [ecx + edx*2]
imul eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
lea edx, [ecx + eax*2]
mov eax, dword [esp + 0x30]
jmp dword [eax*4 + 0x103987ac]
cmp dword [esp + 4], 0
js case.0x100206c8.3
cmp dword [ebp + 0xc], 4
jae 0x100209bd
mov eax, dword [esp + 4]
jmp 0x10020a02
cmp dword [esp + 4], 0
js case.0x100206c8.3
mov eax, dword [ebp + 0xc]
test al, 3
je 0x10020d8e
xor edx, edx
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 8]
nop dword [eax]
movzx esi, word [edi]
mov word [ecx + edx + 4], si
mov word [ecx + edx + 2], si
mov word [ecx + edx], si
add edi, 2
dec eax
add edx, 6
cmp ebx, edx
jne 0x10020710
add edx, ecx
mov ecx, dword [esp + 4]
cmp ecx, 3
jb case.0x100206c8.3
jmp 0x10020d9d
cmp dword [esp + 4], 0
js case.0x100206c8.3
mov eax, dword [ebp + 0xc]
test al, 3
je 0x10020e01
xor edi, edi
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
nop dword [eax + eax]
movdqa xmm2, xmm1
pinsrw xmm2, word [ebx + edi], 0
pshuflw xmm2, xmm2, 0x40
movq qword [ecx + edi*4], xmm2
add edx, 8
dec eax
add edi, 2
cmp esi, edi
jne 0x10020770
add edi, ebx
mov ecx, dword [esp + 4]
cmp ecx, 3
jb case.0x100206c8.3
jmp 0x10020e10
cmp dword [esp + 4], 0
js case.0x100206c8.3
cmp dword [ebp + 0xc], 4
ja 0x10020a2c
mov eax, dword [esp + 4]
jmp 0x10020a74
cmp dword [esp + 4], 0
js case.0x100206c8.3
mov eax, dword [ebp + 0xc]
test al, 3
je 0x10020e86
xor edx, edx
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 8]
nop word cs:[eax + eax]
movzx esi, word [edi]
mov word [ecx + edx + 4], si
mov word [ecx + edx + 2], si
mov word [ecx + edx], si
add edi, 4
dec eax
add edx, 6
cmp ebx, edx
jne 0x100207f0
add edx, ecx
mov ecx, dword [esp + 4]
cmp ecx, 3
jb case.0x100206c8.3
jmp 0x10020e95
cmp dword [esp + 4], 0
js case.0x100206c8.3
mov eax, dword [ebp + 0xc]
test al, 3
je 0x10020ef1
xor edi, edi
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
nop dword [eax + eax]
movd xmm2, dword [ebx + edi]
pshuflw xmm2, xmm2, 0x40
movq qword [ecx + edi*2], xmm2
add edx, 8
dec eax
add edi, 4
cmp esi, edi
jne 0x10020850
add edi, ebx
mov ecx, dword [esp + 4]
cmp ecx, 3
jb case.0x100206c8.3
jmp 0x10020f00
cmp dword [esp + 4], 0
js case.0x100206c8.3
mov eax, dword [ebp + 0xc]
test al, 1
jne 0x10020a95
mov ecx, dword [esp + 4]
mov eax, ecx
test ecx, ecx
jne 0x10020ad3
jmp case.0x100206c8.3
cmp dword [esp + 4], 0
js case.0x100206c8.3
mov eax, dword [ebp + 0xc]
test al, 1
jne 0x10020b45
mov ecx, dword [esp + 4]
mov eax, ecx
test ecx, ecx
jne 0x10020b89
jmp case.0x100206c8.3
cmp dword [esp + 4], 0
js case.0x100206c8.3
mov eax, dword [ebp + 0xc]
test al, 3
je 0x10020fc9
xor esi, esi
mov ecx, dword [esp + 0x28]
nop dword [eax]
mov eax, dword [edi]
mov dword [edx], eax
movzx eax, word [edi + 4]
mov word [edx + 4], ax
mov word [edx + 6], 0xffff
add edi, 6
add edx, 8
inc esi
cmp ecx, esi
jne 0x100208f0
mov ecx, dword [esp + 4]
mov eax, ecx
sub eax, esi
cmp ecx, 3
jb case.0x100206c8.3
jmp 0x10020fd8
cmp dword [esp + 4], 0
js case.0x100206c8.3
mov eax, dword [ebp + 0xc]
test al, 1
jne 0x10020c01
mov ecx, dword [esp + 4]
mov eax, ecx
test ecx, ecx
jne 0x10020c3f
jmp case.0x100206c8.3
cmp dword [esp + 4], 0
js case.0x100206c8.3
mov eax, dword [ebp + 0xc]
test al, 1
jne 0x10020cba
mov ecx, dword [esp + 4]
mov eax, ecx
test ecx, ecx
jne 0x10020d00
jmp case.0x100206c8.3
cmp dword [esp + 4], 0
js case.0x100206c8.3
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x10020f62
xor esi, esi
nop
mov eax, dword [edi]
mov dword [edx], eax
movzx eax, word [edi + 4]
mov word [edx + 4], ax
add edi, 8
add edx, 6
inc esi
cmp ecx, esi
jne 0x10020990
mov ecx, dword [esp + 4]
mov eax, ecx
sub eax, esi
cmp ecx, 3
jb case.0x100206c8.3
jmp 0x10020f71
add edx, dword [esp + 0x38]
add edi, dword [esp + 0x34]
xor eax, eax
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 8]
nop word cs:[eax + eax]
movq xmm2, qword [esi + eax*2]
punpcklwd xmm2, xmm0
movdqu xmmword [ebx + eax*4], xmm2
add eax, 4
cmp ecx, eax
jne 0x100209e0
mov eax, dword [esp + 0x44]
cmp ecx, dword [ebp + 0xc]
je case.0x100206c8.3
inc eax
xor esi, esi
nop word cs:[eax + eax]
movzx ebx, word [edi + esi]
mov word [edx + esi*2], bx
mov word [edx + esi*2 + 2], 0xffff
dec eax
add esi, 2
test eax, eax
jg 0x10020a10
jmp case.0x100206c8.3
add edx, dword [esp + 0x40]
add edi, dword [esp + 0x3c]
xor eax, eax
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 8]
nop word cs:[eax + eax]
movdqu xmm2, xmmword [esi + eax*4]
pshuflw xmm2, xmm2, 0xe8
pshufhw xmm2, xmm2, 0xe8
pshufd xmm2, xmm2, 0xe8
movq qword [ebx + eax*2], xmm2
add eax, 4
cmp ecx, eax
jne 0x10020a50
mov eax, dword [esp + 0x4c]
inc eax
xor esi, esi
nop word [eax + eax]
movzx ebx, word [edi + esi*2]
mov word [edx + esi], bx
dec eax
add esi, 2
test eax, eax
jg 0x10020a80
jmp case.0x100206c8.3
movzx eax, word [edi + 4]
lea esi, [eax + eax*8]
lea esi, [esi + esi*2]
add eax, eax
add eax, esi
movzx esi, word [edi + 2]
imul esi, esi, 0x96
add eax, esi
movzx esi, word [edi]
imul esi, esi, 0x4d
add eax, esi
shr eax, 8
mov word [edx], ax
add edi, 6
add edx, 2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
test ecx, ecx
je case.0x100206c8.3
add eax, 2
add edi, 0xa
nop dword [eax]
movzx esi, word [edi - 6]
lea ebx, [esi + esi*8]
lea ebx, [ebx + ebx*2]
add esi, esi
add esi, ebx
movzx ebx, word [edi - 8]
imul ebx, ebx, 0x96
add esi, ebx
movzx ebx, word [edi - 0xa]
imul ebx, ebx, 0x4d
add esi, ebx
shr esi, 8
mov word [edx], si
movzx esi, word [edi]
lea ebx, [esi + esi*8]
lea ebx, [ebx + ebx*2]
add esi, esi
add esi, ebx
movzx ebx, word [edi - 2]
imul ebx, ebx, 0x96
add esi, ebx
movzx ebx, word [edi - 4]
imul ebx, ebx, 0x4d
add esi, ebx
shr esi, 8
mov word [edx + 2], si
add eax, 0xfffffffe
add edi, 0xc
add edx, 4
cmp eax, 1
jg 0x10020ae0
jmp case.0x100206c8.3
movzx eax, word [edi + 4]
lea esi, [eax + eax*8]
lea esi, [esi + esi*2]
add eax, eax
add eax, esi
movzx esi, word [edi + 2]
imul esi, esi, 0x96
add eax, esi
movzx esi, word [edi]
imul esi, esi, 0x4d
add eax, esi
shr eax, 8
mov word [edx], ax
mov word [edx + 2], 0xffff
add edi, 6
add edx, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
test ecx, ecx
je case.0x100206c8.3
add eax, 2
add edi, 0xa
nop
movzx esi, word [edi - 6]
lea ebx, [esi + esi*8]
lea ebx, [ebx + ebx*2]
add esi, esi
add esi, ebx
movzx ebx, word [edi - 8]
imul ebx, ebx, 0x96
add esi, ebx
movzx ebx, word [edi - 0xa]
imul ebx, ebx, 0x4d
add esi, ebx
shr esi, 8
mov word [edx], si
mov word [edx + 2], 0xffff
movzx esi, word [edi]
lea ebx, [esi + esi*8]
lea ebx, [ebx + ebx*2]
add esi, esi
add esi, ebx
movzx ebx, word [edi - 2]
imul ebx, ebx, 0x96
add esi, ebx
movzx ebx, word [edi - 4]
imul ebx, ebx, 0x4d
add esi, ebx
shr esi, 8
mov word [edx + 4], si
mov word [edx + 6], 0xffff
add eax, 0xfffffffe
add edi, 0xc
add edx, 8
cmp eax, 1
jg 0x10020b90
jmp case.0x100206c8.3
movzx eax, word [edi + 4]
lea esi, [eax + eax*8]
lea esi, [esi + esi*2]
add eax, eax
add eax, esi
movzx esi, word [edi + 2]
imul esi, esi, 0x96
add eax, esi
movzx esi, word [edi]
imul esi, esi, 0x4d
add eax, esi
shr eax, 8
mov word [edx], ax
add edi, 8
add edx, 2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
test ecx, ecx
je case.0x100206c8.3
add eax, 2
xor esi, esi
nop word cs:[eax + eax]
movzx ebx, word [edi + esi*4 + 4]
lea ecx, [ebx + ebx*8]
lea ecx, [ecx + ecx*2]
add ebx, ebx
add ebx, ecx
movzx ecx, word [edi + esi*4 + 2]
imul ecx, ecx, 0x96
add ebx, ecx
movzx ecx, word [edi + esi*4]
imul ecx, ecx, 0x4d
add ebx, ecx
shr ebx, 8
mov word [edx + esi], bx
movzx ebx, word [edi + esi*4 + 0xc]
lea ecx, [ebx + ebx*8]
lea ecx, [ecx + ecx*2]
add ebx, ebx
add ebx, ecx
movzx ecx, word [edi + esi*4 + 0xa]
imul ecx, ecx, 0x96
add ebx, ecx
movzx ecx, word [edi + esi*4 + 8]
imul ecx, ecx, 0x4d
add ebx, ecx
shr ebx, 8
mov word [edx + esi + 2], bx
add eax, 0xfffffffe
add esi, 4
cmp eax, 1
jg 0x10020c50
jmp case.0x100206c8.3
movzx eax, word [edi + 4]
lea esi, [eax + eax*8]
lea esi, [esi + esi*2]
add eax, eax
add eax, esi
movzx esi, word [edi + 2]
imul esi, esi, 0x96
add eax, esi
movzx esi, word [edi]
imul esi, esi, 0x4d
add eax, esi
shr eax, 8
mov word [edx], ax
movzx eax, word [edi + 6]
mov word [edx + 2], ax
add edi, 8
add edx, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
test ecx, ecx
je case.0x100206c8.3
add eax, 2
xor esi, esi
nop word cs:[eax + eax]
movzx ebx, word [edi + esi*2 + 4]
lea ecx, [ebx + ebx*8]
lea ecx, [ecx + ecx*2]
add ebx, ebx
add ebx, ecx
movzx ecx, word [edi + esi*2 + 2]
imul ecx, ecx, 0x96
add ebx, ecx
movzx ecx, word [edi + esi*2]
imul ecx, ecx, 0x4d
add ebx, ecx
shr ebx, 8
mov word [edx + esi], bx
movzx ecx, word [edi + esi*2 + 6]
mov word [edx + esi + 2], cx
movzx ebx, word [edi + esi*2 + 0xc]
lea ecx, [ebx + ebx*8]
lea ecx, [ecx + ecx*2]
add ebx, ebx
add ebx, ecx
movzx ecx, word [edi + esi*2 + 0xa]
imul ecx, ecx, 0x96
add ebx, ecx
movzx ecx, word [edi + esi*2 + 8]
imul ecx, ecx, 0x4d
add ebx, ecx
shr ebx, 8
mov word [edx + esi + 4], bx
movzx ecx, word [edi + esi*2 + 0xe]
mov word [edx + esi + 6], cx
add eax, 0xfffffffe
add esi, 8
cmp eax, 1
jg 0x10020d10
jmp case.0x100206c8.3
mov ecx, dword [esp + 4]
mov eax, ecx
cmp ecx, 3
jb case.0x100206c8.3
add eax, 4
add edx, 0x16
nop word cs:[eax + eax]
movzx esi, word [edi]
mov word [edx - 0x12], si
mov word [edx - 0x14], si
mov word [edx - 0x16], si
movzx esi, word [edi + 2]
mov word [edx - 0xc], si
mov word [edx - 0xe], si
mov word [edx - 0x10], si
movzx esi, word [edi + 4]
mov word [edx - 6], si
mov word [edx - 8], si
mov word [edx - 0xa], si
movzx esi, word [edi + 6]
mov word [edx], si
mov word [edx - 2], si
mov word [edx - 4], si
add eax, 0xfffffffc
add edx, 0x18
add edi, 8
cmp eax, 3
jg 0x10020db0
jmp case.0x100206c8.3
mov ecx, dword [esp + 4]
mov eax, ecx
cmp ecx, 3
jb case.0x100206c8.3
add eax, 4
xor esi, esi
nop word cs:[eax + eax]
pcmpeqd xmm2, xmm2
pinsrw xmm2, word [edi + esi], 0
pshuflw xmm2, xmm2, 0x40
movq qword [edx + esi*4], xmm2
pcmpeqd xmm2, xmm2
pinsrw xmm2, word [edi + esi + 2], 0
pshuflw xmm2, xmm2, 0x40
movq qword [edx + esi*4 + 8], xmm2
pcmpeqd xmm2, xmm2
pinsrw xmm2, word [edi + esi + 4], 0
pshuflw xmm2, xmm2, 0x40
movq qword [edx + esi*4 + 0x10], xmm2
pcmpeqd xmm2, xmm2
pinsrw xmm2, word [edi + esi + 6], 0
pshuflw xmm2, xmm2, 0x40
movq qword [edx + esi*4 + 0x18], xmm2
add eax, 0xfffffffc
add esi, 8
cmp eax, 3
jg 0x10020e20
jmp case.0x100206c8.3
mov ecx, dword [esp + 4]
mov eax, ecx
cmp ecx, 3
jb case.0x100206c8.3
add eax, 4
add edx, 0x16
nop dword [eax + eax]
movzx esi, word [edi]
mov word [edx - 0x12], si
mov word [edx - 0x14], si
mov word [edx - 0x16], si
movzx esi, word [edi + 4]
mov word [edx - 0xc], si
mov word [edx - 0xe], si
mov word [edx - 0x10], si
movzx esi, word [edi + 8]
mov word [edx - 6], si
mov word [edx - 8], si
mov word [edx - 0xa], si
movzx esi, word [edi + 0xc]
mov word [edx], si
mov word [edx - 2], si
mov word [edx - 4], si
add eax, 0xfffffffc
add edx, 0x18
add edi, 0x10
cmp eax, 3
jg 0x10020ea0
jmp case.0x100206c8.3
mov ecx, dword [esp + 4]
mov eax, ecx
cmp ecx, 3
jb case.0x100206c8.3
add eax, 4
xor esi, esi
nop word cs:[eax + eax]
movd xmm2, dword [edi + esi]
pshuflw xmm2, xmm2, 0x40
movq qword [edx + esi*2], xmm2
movd xmm2, dword [edi + esi + 4]
pshuflw xmm2, xmm2, 0x40
movq qword [edx + esi*2 + 8], xmm2
movd xmm2, dword [edi + esi + 8]
pshuflw xmm2, xmm2, 0x40
movq qword [edx + esi*2 + 0x10], xmm2
movd xmm2, dword [edi + esi + 0xc]
pshuflw xmm2, xmm2, 0x40
movq qword [edx + esi*2 + 0x18], xmm2
add eax, 0xfffffffc
add esi, 0x10
cmp eax, 3
jg 0x10020f10
jmp case.0x100206c8.3
mov ecx, dword [esp + 4]
mov eax, ecx
cmp ecx, 3
jb case.0x100206c8.3
add eax, 4
nop word cs:[eax + eax]
mov ecx, dword [edi]
mov dword [edx], ecx
movzx ecx, word [edi + 4]
mov word [edx + 4], cx
mov ecx, dword [edi + 8]
mov dword [edx + 6], ecx
movzx ecx, word [edi + 0xc]
mov word [edx + 0xa], cx
mov ecx, dword [edi + 0x10]
mov dword [edx + 0xc], ecx
movzx ecx, word [edi + 0x14]
mov word [edx + 0x10], cx
mov ecx, dword [edi + 0x18]
mov dword [edx + 0x12], ecx
movzx ecx, word [edi + 0x1c]
mov word [edx + 0x16], cx
add eax, 0xfffffffc
add edi, 0x20
add edx, 0x18
cmp eax, 3
jg 0x10020f80
jmp case.0x100206c8.3
mov ecx, dword [esp + 4]
mov eax, ecx
cmp ecx, 3
jb case.0x100206c8.3
add eax, 4
nop dword [eax + eax]
mov esi, dword [edi]
mov dword [edx], esi
movzx esi, word [edi + 4]
mov word [edx + 4], si
mov word [edx + 6], 0xffff
mov esi, dword [edi + 6]
mov dword [edx + 8], esi
movzx esi, word [edi + 0xa]
mov word [edx + 0xc], si
mov word [edx + 0xe], 0xffff
mov esi, dword [edi + 0xc]
mov dword [edx + 0x10], esi
movzx esi, word [edi + 0x10]
mov word [edx + 0x14], si
mov word [edx + 0x16], 0xffff
mov esi, dword [edi + 0x12]
mov dword [edx + 0x18], esi
movzx esi, word [edi + 0x16]
mov word [edx + 0x1c], si
mov word [edx + 0x1e], 0xffff
add eax, 0xfffffffc
add edi, 0x18
add edx, 0x20
cmp eax, 3
jg 0x10020fe0
jmp case.0x100206c8.3
push dword [esp + 0x18]
call fcn.1037ddf5
add esp, 4
mov esi, dword [esp + 0x14]
jmp 0x10021067
push esi
call fcn.1037ddf5
add esp, 4
lea eax, [esp + 0x60]
mov dword [0x1058e718], eax
xor esi, esi
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.101ac85a
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret