Function at 0x10021b90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x1004900c]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
xor ebx, ebx
mov dword [esp + 0x54], ecx
xor esi, esi
mov ecx, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x18], edi
call fcn.10021870
mov edx, eax
mov eax, dword [esp + 0x54]
mov dword [eax], ebx
test edx, edx
js 0x10022586
movzx ecx, byte [edx + edi]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + edi + 1]
add cx, ax
movzx eax, cx
test ax, ax
jle 0x10022079
mov esi, dword [esp + 0x18]
add edi, 0xa
cwde
add edi, edx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], edi
lea ebx, [eax + eax]
lea ecx, [edx + eax*2]
mov dword [esp + 0x18], ebx
movzx eax, byte [ecx + esi + 0xb]
movzx ecx, byte [ecx + esi + 0xa]
add esi, eax
mov eax, dword [0x1004995c]
shl ecx, 8
add ecx, 0xc
add esi, ecx
movzx ecx, byte [ebx + edi - 2]
movzx edi, byte [ebx + edi - 1]
add esi, ebx
shl ecx, 8
add esi, edx
inc ecx
add edi, ecx
mov dword [esp + 0x2c], edi
lea ecx, [ebx + edi]
test eax, eax
je 0x10021c58
inc dword [eax + 0x374]
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x10022586
mov edx, dword [esp + 0x18]
xor cl, cl
mov dword [esp + 0x48], 0
lea eax, [edx*8]
sub eax, edx
add eax, eax
mov dword [esp + 0x18], eax
test edi, edi
je 0x10022020
lea edi, [eax + 0xc]
mov eax, dword [esp + 0x2c]
add edi, ebx
mov dword [esp + 0x10], eax
mov bl, cl
nop
test cl, cl
jne 0x10021cd0
mov bl, byte [esi]
mov dl, bl
and dl, 8
je 0x10021cc0
mov cl, byte [esi + 1]
xor eax, eax
test dl, dl
setne al
inc eax
add esi, eax
mov eax, dword [esp + 0x10]
jmp 0x10021cd2
dec cl
mov byte [edi], bl
add edi, 0xe
sub eax, 1
mov dword [esp + 0x10], eax
jne 0x10021cb0
mov edi, dword [esp + 0x18]
add edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ebx, edi
mov dword [esp + 0x14], edi
xor edi, edi
mov dword [esp + 0x10], eax
nop dword [eax + eax]
mov dl, byte [ebx + 0xc]
and dl, 0x10
test byte [ebx + 0xc], 2
je 0x10021d1f
mov al, byte [esi]
inc esi
movzx ecx, al
mov eax, ecx
neg eax
test dl, dl
cmove ecx, eax
add edi, ecx
jmp 0x10021d41
test dl, dl
jne 0x10021d41
movzx ecx, byte [esi]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + 1]
add cx, ax
movsx eax, cx
add edi, eax
add esi, 2
mov word [ebx], di
add ebx, 0xe
sub dword [esp + 0x10], 1
jne 0x10021d00
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
add eax, 2
mov ebx, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
nop word [eax + eax]
mov dl, byte [eax + 0xa]
and dl, 0x20
test byte [eax + 0xa], 4
je 0x10021d8f
mov al, byte [esi]
inc esi
movzx ecx, al
mov eax, ecx
neg eax
test dl, dl
cmove ecx, eax
add edi, ecx
jmp 0x10021db1
test dl, dl
jne 0x10021db1
movzx ecx, byte [esi]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + 1]
add cx, ax
movsx eax, cx
add edi, eax
add esi, 2
mov eax, dword [esp + 0x10]
mov word [eax], di
add eax, 0xe
sub dword [esp + 0x24], 1
mov dword [esp + 0x10], eax
jne 0x10021d70
mov edi, dword [esp + 0x14]
xor edx, edx
xor eax, eax
mov dword [esp + 0x24], edx
xor esi, esi
mov dword [esp + 0x10], edx
xor ecx, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ecx
nop word [eax + eax]
mov cl, byte [edi + 0xc]
mov byte [esp + 0xf], cl
movzx ecx, word [edi]
mov dword [esp + 0x14], ecx
movzx ecx, word [edi + 2]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x48], ecx
jne 0x10021eed
test ecx, ecx
je 0x10021e41
push dword [esp + 0x38]
mov ecx, ebx
push dword [esp + 0x40]
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push esi
push eax
push dword [esp + 0x5c]
push dword [esp + 0x8c]
call fcn.10021ac0
add esp, 0x20
mov edx, eax
movzx eax, byte [esp + 0xf]
mov ecx, dword [esp + 0x14]
not eax
mov esi, dword [esp + 0x1c]
and eax, 1
mov dword [esp + 0x44], eax
je 0x10021ea2
test byte [edi + 0x1a], 1
movsx eax, cx
movsx ecx, si
movsx esi, word [edi + 0x10]
mov dword [esp + 0x24], ecx
lea ecx, [edi + 0xe]
mov dword [esp + 0x18], ecx
movsx ecx, word [ecx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ecx
jne 0x10021e98
add ecx, eax
sar ecx, 1
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
movsx eax, cx
mov ecx, dword [esp + 0x20]
add esi, eax
sar esi, 1
jmp 0x10021eac
inc dword [esp + 0x34]
mov edi, dword [esp + 0x18]
jmp 0x10021eac
movsx ecx, cx
mov dword [esp + 0x20], ecx
movsx esi, si
lea eax, [edx*8]
sub eax, edx
inc edx
mov word [ebx + eax*2], cx
xor ecx, ecx
mov dword [ebx + eax*2 + 4], ecx
mov byte [ebx + eax*2 + 0xc], 1
mov word [ebx + eax*2 + 2], si
mov eax, dword [esp + 0x40]
mov dword [esp + 0x70], ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
inc ecx
shl eax, 8
add eax, ecx
add dword [esp + 0x40], 2
mov dword [esp + 0x48], eax
jmp 0x10022004
test byte [esp + 0xf], 1
jne 0x10021f72
cmp dword [esp + 0x70], 0
je 0x10021f4f
lea ecx, [edx*8]
sub ecx, edx
inc edx
mov dword [esp + 0x70], ecx
mov byte [ebx + ecx*2 + 0xc], 3
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
movsx eax, cx
add eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x70]
sar eax, 1
mov word [ebx + ecx*2], ax
mov ecx, dword [esp + 0x1c]
movsx eax, cx
mov ecx, dword [esp + 0x70]
add eax, dword [esp + 0x38]
sar eax, 1
mov word [ebx + ecx*2 + 2], ax
mov eax, dword [esp + 0x3c]
mov word [ebx + ecx*2 + 4], ax
mov eax, dword [esp + 0x38]
mov word [ebx + ecx*2 + 6], ax
mov ecx, dword [esp + 0x14]
movsx eax, cx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
movsx eax, cx
mov dword [esp + 0x38], eax
mov dword [esp + 0x70], 1
jmp 0x10022004
lea eax, [edx*8]
sub eax, edx
inc edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
movzx eax, ax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x4c], ecx
test eax, eax
je 0x10021fb6
mov ecx, dword [esp + 0x38]
movzx ecx, cx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
movzx ecx, cx
mov dword [esp + 0x14], ecx
jmp 0x10021fc6
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x18]
test eax, eax
setne al
add al, 2
mov byte [ebx + ecx*2 + 0xc], al
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
mov word [ebx + eax*2], cx
mov ecx, dword [esp + 0x4c]
mov word [ebx + eax*2 + 2], cx
mov ecx, dword [esp + 0x14]
mov word [ebx + eax*2 + 4], cx
mov ecx, dword [esp + 0x1c]
mov word [ebx + eax*2 + 6], cx
mov dword [esp + 0x70], 0
mov ecx, dword [esp + 0x34]
add edi, 0xe
mov eax, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x34], ecx
cmp ecx, dword [esp + 0x2c]
jl 0x10021df0
jmp 0x10022036
xor edx, edx
xor esi, esi
mov dword [esp + 0x24], edx
xor eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
push dword [esp + 0x38]
mov ecx, ebx
push dword [esp + 0x40]
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push esi
push eax
push dword [esp + 0x5c]
push dword [esp + 0x8c]
call fcn.10021ac0
add esp, 0x20
mov esi, eax
mov eax, dword [esp + 0x54]
mov dword [eax], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1003b65b
mov esp, ebp
pop ebp
ret
cmp ax, 0xffff
jne 0x1002205f
add edi, 0xa
xor esi, esi
add edi, edx
mov dword [esp + 0x1c], esi
xor ebx, ebx
mov al, byte [edi + 2]
xorps xmm1, xmm1
movzx edx, byte [edi + 1]
movaps xmm0, xmmword [0x10045e30]
movss xmm4, dword [0x10045b1c]
mov byte [esp + 0xf], al
mov al, byte [edi + 3]
add edi, 4
mov dword [esp + 0x70], 0
mov dword [esp + 0x40], edx
mov byte [esp + 0x33], al
movss dword [esp + 0x2c], xmm1
movss dword [esp + 0x28], xmm1
movups xmmword [esp + 0x58], xmm0
test dl, 2
je 0x10022153
mov al, byte [edi]
lea ecx, [edi + 1]
mov dword [esp + 0x4c], ecx
test dl, 1
je 0x1002212e
mov dl, byte [edi + 2]
lea esi, [edi + 3]
movzx ecx, al
add edi, 4
movsx ecx, cx
mov eax, 0x100
cwde
imul ecx, eax
mov eax, dword [esp + 0x4c]
movzx eax, byte [eax]
add cx, ax
movsx eax, cx
movzx ecx, dl
mov edx, dword [esp + 0x40]
movsx ecx, cx
movd xmm0, eax
mov eax, 0x100
cwde
imul ecx, eax
movzx eax, byte [esi]
mov esi, dword [esp + 0x1c]
add cx, ax
movsx eax, cx
jmp 0x1002213d
mov edi, ecx
movsx eax, al
mov cl, byte [edi]
inc edi
movd xmm0, eax
movsx eax, cl
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x2c], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x28], xmm0
test dl, 8
je 0x10022196
movzx ecx, byte [edi]
mov eax, 0x100
cwde
xorps xmm3, xmm3
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + 1]
movss dword [esp + 0x20], xmm1
add cx, ax
add edi, 2
movsx eax, cx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm4
movss dword [esp + 0x14], xmm0
movaps xmm2, xmm0
jmp 0x100222c9
test dl, 0x40
je 0x100221fa
movzx ecx, byte [edi]
mov edx, 0x100
movsx ecx, cx
xorps xmm3, xmm3
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 1]
movss dword [esp + 0x20], xmm1
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 2]
movsx ecx, cx
movd xmm2, eax
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 3]
cvtdq2ps xmm2, xmm2
add cx, ax
add edi, 4
movsx eax, cx
mulss xmm2, xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm4
movss dword [esp + 0x14], xmm0
jmp 0x100222c9
test dl, dl
jns 0x100222a5
movzx ecx, byte [edi]
mov edx, 0x100
movsx ecx, cx
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 1]
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 2]
movsx ecx, cx
movd xmm2, eax
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 3]
cvtdq2ps xmm2, xmm2
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 4]
movsx ecx, cx
mulss xmm2, xmm4
movd xmm3, eax
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 5]
cvtdq2ps xmm3, xmm3
add cx, ax
movsx eax, cx
movss dword [esp + 0x10], xmm2
movzx ecx, byte [edi + 6]
movsx ecx, cx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 7]
mulss xmm0, xmm4
mulss xmm3, xmm4
add cx, ax
add edi, 8
movsx eax, cx
movss dword [esp + 0x20], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm4
movss dword [esp + 0x14], xmm0
jmp 0x100222cf
movss xmm0, dword [esp + 0x64]
movss xmm3, dword [esp + 0x5c]
movss xmm2, dword [esp + 0x58]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x60]
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x10], xmm2
movaps xmm1, xmm3
movss dword [esp + 0x24], xmm3
movaps xmm0, xmm2
mulss xmm1, xmm3
mulss xmm0, xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x100222f9
sqrtsd xmm0, xmm0
jmp 0x100222fe
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [esp + 0x14]
cvtsd2ss xmm0, xmm0
mulss xmm1, xmm1
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x20]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10022332
sqrtsd xmm0, xmm0
jmp 0x10022337
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movzx edx, byte [esp + 0xf]
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x50]
cvtsd2ss xmm0, xmm0
push eax
movzx eax, byte [esp + 0x37]
shl edx, 8
add edx, eax
movss dword [esp + 0x4c], xmm0
call fcn.10023b00
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
jle 0x10022532
movss xmm4, dword [esp + 0x14]
xor edx, edx
movss xmm5, dword [esp + 0x10]
mov esi, eax
movss xmm6, dword [esp + 0x20]
movss xmm7, dword [esp + 0x24]
nop dword [eax]
mov ecx, dword [esp + 0x70]
xorps xmm3, xmm3
xorps xmm2, xmm2
movsx eax, word [edx + ecx + 2]
cvtsi2ss xmm3, eax
movsx eax, word [edx + ecx]
cvtsi2ss xmm2, eax
movaps xmm0, xmm3
mulss xmm3, xmm4
movaps xmm1, xmm2
mulss xmm0, xmm6
mulss xmm1, xmm5
mulss xmm2, xmm7
addss xmm1, xmm0
addss xmm2, xmm3
xorps xmm3, xmm3
addss xmm1, dword [esp + 0x2c]
addss xmm2, dword [esp + 0x28]
mulss xmm1, dword [esp + 0x18]
mulss xmm2, dword [esp + 0x48]
cvttss2si eax, xmm1
mov word [edx + ecx], ax
cvttss2si eax, xmm2
xorps xmm2, xmm2
mov word [edx + ecx + 2], ax
movsx eax, word [edx + ecx + 6]
cvtsi2ss xmm3, eax
movsx eax, word [edx + ecx + 4]
cvtsi2ss xmm2, eax
movaps xmm0, xmm3
mulss xmm3, xmm4
movaps xmm1, xmm2
mulss xmm0, xmm6
mulss xmm1, xmm5
mulss xmm2, xmm7
addss xmm1, xmm0
addss xmm2, xmm3
addss xmm1, dword [esp + 0x2c]
addss xmm2, dword [esp + 0x28]
mulss xmm1, dword [esp + 0x18]
mulss xmm2, dword [esp + 0x48]
cvttss2si eax, xmm1
mov word [edx + ecx + 4], ax
cvttss2si eax, xmm2
mov word [edx + ecx + 6], ax
add edx, 0xe
sub esi, 1
jne 0x10022390
mov eax, dword [0x1004995c]
mov esi, dword [esp + 0x1c]
test eax, eax
je 0x10022471
inc dword [eax + 0x374]
mov ecx, dword [esp + 0x44]
add ecx, esi
mov dword [esp + 0x4c], ecx
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x10022542
test esi, esi
jle 0x100224b6
shl esi, 3
sub esi, dword [esp + 0x1c]
add esi, esi
push esi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x100224bf
shl esi, 3
sub esi, dword [esp + 0x1c]
add esi, esi
mov ecx, dword [esp + 0x44]
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
push eax
push dword [esp + 0x74]
mov eax, dword [esp + 0x20]
add eax, esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test ebx, ebx
je 0x10022503
mov eax, dword [0x1004995c]
test eax, eax
je 0x100224f5
dec dword [eax + 0x374]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call esi
add esp, 4
jmp 0x10022509
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x18]
test ecx, ecx
je 0x10022524
mov eax, dword [0x1004995c]
test eax, eax
je 0x10022524
dec dword [eax + 0x374]
push ecx
call esi
mov esi, dword [esp + 0x50]
add esp, 4
mov dword [esp + 0x1c], esi
test byte [esp + 0x40], 0x20
je 0x1002205f
jmp 0x1002208c
test ebx, ebx
je 0x10022563
mov eax, dword [0x1004995c]
test eax, eax
je 0x10022555
dec dword [eax + 0x374]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call esi
add esp, 4
jmp 0x10022569
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x10022586
mov eax, dword [0x1004995c]
test eax, eax
je 0x10022580
dec dword [eax + 0x374]
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0x74]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003b65b
mov esp, ebp
pop ebp
ret