Function at 0x1021d320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, dword [0x1038100c]
xor eax, ebp
mov dword [esp + 0x98], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x80], xmm0
test ecx, ecx
je 0x1021da7c
xor eax, eax
movzx edx, word [esi + eax*2]
inc word [esp + edx*2 + 0x70]
inc eax
cmp ecx, eax
jne 0x1021d35d
movzx esi, word [esp + 0x8e]
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
test si, si
jne 0x1021d468
cmp word [esp + 0x8c], 0
jne 0x1021d472
cmp word [esp + 0x8a], 0
jne 0x1021d9e4
cmp word [esp + 0x88], 0
jne 0x1021d9ee
cmp word [esp + 0x86], 0
jne 0x1021d9f8
cmp word [esp + 0x84], 0
jne 0x1021da02
cmp word [esp + 0x82], 0
jne 0x1021da0c
cmp word [esp + 0x80], 0
jne 0x1021da16
cmp word [esp + 0x7e], 0
jne 0x1021da20
cmp word [esp + 0x7c], 0
jne 0x1021da2a
cmp word [esp + 0x7a], 0
jne 0x1021da34
cmp word [esp + 0x78], 0
jne 0x1021da3e
cmp word [esp + 0x76], 0
jne 0x1021da48
cmp word [esp + 0x74], 0
jne 0x1021da52
movzx ebx, word [esp + 0x72]
test bx, bx
jne 0x1021da5c
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
lea ecx, [eax + 4]
mov dword [esi], ecx
mov ecx, 0x140
mov dword [eax], ecx
mov eax, dword [esi]
lea edx, [eax + 4]
mov dword [esi], edx
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
jmp 0x1021d975
mov dword [esp], esi
mov esi, 0xf
jmp 0x1021d47e
mov esi, 0xe
mov dword [esp], 0
cmp edx, esi
cmova edx, esi
mov eax, edx
xor edx, edx
inc edx
cmp word [esp + edx*2 + 0x70], 0
jne 0x1021d497
inc edx
cmp esi, edx
jne 0x1021d488
mov edx, esi
mov bl, 1
mov dword [esp + 0x20], ebx
movzx ebx, word [esp + 0x72]
mov dword [esp + 0x4c], esi
cmp eax, edx
cmovb eax, edx
mov dword [esp + 4], eax
xor eax, eax
dec eax
mov dword [esp + 0x10], eax
cmp bx, 2
ja 0x1021d97d
mov dword [esp + 0x30], ebx
movzx eax, bx
movzx esi, word [esp + 0x74]
lea eax, [esi + eax*2]
mov ebx, 4
sub ebx, eax
js 0x1021d97d
add ebx, ebx
movzx eax, word [esp + 0x76]
sub ebx, eax
js 0x1021d97d
add ebx, ebx
movzx edi, word [esp + 0x78]
mov dword [esp + 8], edi
sub ebx, edi
js 0x1021d97d
mov dword [esp + 0x1c], esi
add ebx, ebx
movzx edi, word [esp + 0x7a]
sub ebx, edi
js 0x1021d97d
add ebx, ebx
movzx esi, word [esp + 0x7c]
mov dword [esp + 0x3c], esi
sub ebx, esi
js 0x1021d97d
mov dword [esp + 0xc], eax
add ebx, ebx
movzx esi, word [esp + 0x7e]
sub ebx, esi
js 0x1021d97d
add ebx, ebx
movzx eax, word [esp + 0x80]
mov dword [esp + 0x44], eax
sub ebx, eax
js 0x1021d97d
add ebx, ebx
movzx eax, word [esp + 0x82]
sub ebx, eax
js 0x1021d97d
mov dword [esp + 0x18], edx
add ebx, ebx
movzx edx, word [esp + 0x84]
sub ebx, edx
js 0x1021d97d
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
add ebx, ebx
movzx eax, word [esp + 0x86]
mov dword [esp + 0x14], eax
sub ebx, eax
js 0x1021d97d
mov dword [esp + 0x48], edi
add ebx, ebx
movzx esi, word [esp + 0x88]
sub ebx, esi
js 0x1021d97d
add ebx, ebx
movzx edi, word [esp + 0x8a]
sub ebx, edi
js 0x1021d97d
add ebx, ebx
movzx eax, word [esp + 0x8c]
mov dword [esp + 0x38], eax
sub ebx, eax
js 0x1021d97d
mov dword [esp + 0x24], edx
add ebx, ebx
movzx eax, word [esp]
sub ebx, eax
js 0x1021d97d
cmp dword [ebp + 8], 0
setne al
mov edx, dword [esp + 0x20]
xor dl, 1
test al, dl
jne 0x1021d5fd
test ebx, ebx
jne 0x1021d97d
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
add ebx, eax
mov word [esp + 0x52], 0
mov word [esp + 0x54], ax
mov eax, dword [esp + 0xc]
add eax, ebx
mov word [esp + 0x56], bx
mov ebx, dword [esp + 8]
add ebx, eax
mov word [esp + 0x58], ax
mov eax, dword [esp + 0x48]
add eax, ebx
mov word [esp + 0x5a], bx
mov ebx, dword [esp + 0x3c]
add ebx, eax
mov word [esp + 0x5c], ax
mov eax, dword [esp + 0x2c]
add eax, ebx
mov word [esp + 0x5e], bx
mov ebx, dword [esp + 0x44]
add ebx, eax
mov word [esp + 0x60], ax
mov eax, dword [esp + 0x28]
add eax, ebx
mov word [esp + 0x62], bx
mov edx, dword [esp + 0x24]
add edx, eax
mov word [esp + 0x64], ax
mov eax, dword [esp + 0x14]
add eax, edx
mov word [esp + 0x66], dx
add esi, eax
mov word [esp + 0x68], ax
add edi, esi
mov word [esp + 0x6a], si
mov eax, dword [esp + 0x38]
add eax, edi
mov word [esp + 0x6c], di
mov word [esp + 0x6e], ax
test ecx, ecx
mov ebx, dword [ebp + 0xc]
je 0x1021d6be
xor eax, eax
movzx edx, word [ebx + eax*2]
test edx, edx
je 0x1021d6b9
movzx esi, word [esp + edx*2 + 0x50]
lea edi, [esi + 1]
mov word [esp + edx*2 + 0x50], di
mov edx, dword [ebp + 0x1c]
mov word [edx + esi*2], ax
inc eax
cmp ecx, eax
jne 0x1021d69d
mov eax, dword [ebp + 8]
test eax, eax
je 0x1021d705
cmp eax, 1
mov edx, dword [esp + 0x18]
jne 0x1021d997
cmp dword [esp + 4], 9
ja 0x1021d9ce
mov al, 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], 0x101
mov dword [esp + 0x28], 0x102fb332
mov dword [esp + 0x24], 0x102fb2f4
mov dword [esp + 0x40], 0
jmp 0x1021d72c
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x40], 0
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], 0
mov edx, dword [esp + 0x18]
xor eax, eax
inc eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 4]
shl eax, cl
mov dword [esp + 0x14], eax
dec eax
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [eax]
xor eax, eax
dec eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x3c], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [esp], eax
mov dword [esp + 0x38], esi
lea eax, [esi + 2]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, edx
sub esi, eax
mov dword [esp + 0x20], esi
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0xc], ecx
mov edi, edx
movzx edx, word [eax + ecx*2]
movzx ecx, dx
lea eax, [ecx + 1]
mov esi, dword [esp + 0x2c]
cmp eax, esi
mov dword [esp + 0x18], edi
jae 0x1021d85f
mov dword [esp + 0x30], 0
mov ebx, dword [esp + 0x1c]
xor esi, esi
dec esi
mov ecx, dword [esp + 0x20]
shl esi, cl
mov eax, ebx
mov ecx, dword [esp + 8]
shr eax, cl
lea ecx, [esi + esi]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x48]
lea ecx, [ecx + eax*2]
mov ebx, dword [esp]
mov eax, ebx
mov edi, edx
mov edx, dword [esp + 0x30]
mov byte [ecx + ebx*4 - 2], dl
mov edx, dword [esp + 0x20]
mov byte [ecx + ebx*4 - 1], dl
mov word [ecx + ebx*4], di
add eax, esi
mov ebx, eax
jne 0x1021d7dd
mov eax, dword [esp + 0x18]
mov esi, eax
mov ecx, eax
dec cl
xor edx, edx
inc edx
shl edx, cl
mov edi, dword [esp + 0x1c]
mov ecx, edx
shr edx, 1
test ecx, edi
jne 0x1021d80a
lea eax, [ecx - 1]
and eax, edi
add eax, ecx
cmp ecx, 1
mov edi, eax
mov eax, 0
cmovb edi, eax
mov edx, esi
dec word [esp + esi*2 + 0x70]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x4c]
je 0x1021d887
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0x1c], edi
mov ebx, edi
and ebx, dword [esp + 0x44]
cmp ebx, dword [esp + 0x3c]
mov eax, dword [esp + 8]
je 0x1021d781
cmp edx, dword [esp + 4]
jbe 0x1021d781
jmp 0x1021d8a1
mov eax, esi
cmp esi, ecx
mov ebx, dword [esp + 0x1c]
ja 0x1021d94b
sub ecx, eax
mov eax, dword [esp + 0x28]
mov al, byte [eax + ecx*2]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
movzx edx, word [eax + ecx*2]
jmp 0x1021d7b8
cmp edx, eax
je 0x1021d958
mov eax, dword [ebp + 0x1c]
mov edx, dword [esp + 0xc]
movzx eax, word [eax + edx*2 + 2]
movzx edx, word [ecx + eax*2]
jmp 0x1021d836
mov dword [esp + 0xc], ecx
test eax, eax
cmove eax, dword [esp + 4]
mov ecx, edx
sub ecx, eax
mov esi, edx
xor edx, edx
inc edx
shl edx, cl
mov edi, eax
mov eax, dword [esp + 0x4c]
cmp esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 8], edi
jae 0x1021d8e1
mov ecx, eax
sub ecx, edi
movzx eax, word [esp + esi*2 + 0x70]
sub edx, eax
jg 0x1021d940
sub esi, dword [esp + 8]
mov ecx, esi
xor edx, edx
inc edx
shl edx, cl
mov esi, dword [esp + 0x14]
add esi, edx
cmp esi, 0x354
seta dl
cmp esi, 0x250
seta al
test byte [esp + 0x34], dl
jne 0x1021d97d
mov dword [esp + 0x14], esi
and al, byte [esp + 0x40]
jne 0x1021d97d
mov esi, dword [esp + 0x38]
mov eax, dword [esp]
lea esi, [esi + eax*4]
mov edi, dword [ebp + 0x14]
mov eax, dword [edi]
mov byte [eax + ebx*4], cl
mov eax, dword [edi]
mov edx, dword [esp + 4]
mov byte [eax + ebx*4 + 1], dl
mov eax, dword [edi]
mov edx, esi
sub edx, eax
shr edx, 2
mov word [eax + ebx*4 + 2], dx
mov dword [esp + 0x3c], ebx
mov edx, dword [esp + 0x18]
jmp 0x1021d766
add edx, edx
inc esi
cmp esi, dword [esp + 0x4c]
jb 0x1021d8cd
jmp 0x1021d8dc
mov al, 0x60
mov dword [esp + 0x30], eax
xor edx, edx
jmp 0x1021d7b8
test edi, edi
jne 0x1021da86
mov ecx, dword [esp + 0x14]
shl ecx, 2
mov eax, dword [ebp + 0x14]
add dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.1021e470
mov eax, dword [esp + 0x10]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x102fb3b0
mov dword [esp + 0x24], 0x102fb370
cmp eax, 2
sete al
mov dword [esp + 0x40], eax
jne 0x1021d9d7
mov dword [esp + 0x34], 0
cmp dword [esp + 4], 9
jbe 0x1021d72c
xor eax, eax
inc eax
mov dword [esp + 0x10], eax
jmp 0x1021d97d
mov dword [esp + 0x34], 0
jmp 0x1021d72c
mov esi, 0xd
jmp 0x1021d477
mov esi, 0xc
jmp 0x1021d477
mov esi, 0xb
jmp 0x1021d477
mov esi, 0xa
jmp 0x1021d477
mov esi, 9
jmp 0x1021d477
mov esi, 8
jmp 0x1021d477
mov esi, 7
jmp 0x1021d477
mov esi, 6
jmp 0x1021d477
mov esi, 5
jmp 0x1021d477
mov esi, 4
jmp 0x1021d477
mov esi, 3
jmp 0x1021d477
mov esi, 2
jmp 0x1021d477
xor eax, eax
test edx, edx
setne al
xor esi, esi
inc esi
mov dword [esp + 0x20], 0
mov dword [esp], 0
mov edx, esi
jmp 0x1021d4a2
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
jmp 0x1021d390
mov eax, dword [esp + 0x38]
mov byte [eax + edi*4], 0x40
mov ecx, dword [esp + 0x20]
mov byte [eax + edi*4 + 1], cl
mov word [eax + edi*4 + 2], 0
jmp 0x1021d960