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

Disassembly:
sub esp, 0x180
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x184]
push ebx
mov ebx, dword [esp + 0x18c]
mov dword [esp + 0xa0], eax
mov al, byte [esp + 0x1a0]
push ebp
lea ebp, [ebx + 0xe0]
mov byte [esp + 0xb], al
mov byte [esp + 0x44], al
mov eax, dword [ebp + 0xfd0]
push esi
mov esi, dword [esp + 0x198]
push edi
mov ecx, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x84], esi
mov dword [esp + 0x48], ebp
movzx eax, byte [ecx + 0x9f]
mov dword [esp + 0xa4], ecx
test al, al
js 0x1021f503
cmp byte [ecx + 0x14], 0
mov dword [esp + 0x80], 0
jle 0x1021f50e
mov dword [esp + 0x80], 1
cmp byte [ebx + 0x23b6c], 2
jne 0x1021f53f
cmp dword [ecx], 0
jle 0x1021f53f
push dword [esp + 0x4c]
push dword [ecx]
push dword [ebp + 0x10a0]
push dword [ebp + 0x109c]
call fcn.1022a8e0
add esp, 0x10
mov edi, dword [ebx + eax*8 + 0x7d40]
jmp 0x1021f541
xor edi, edi
mov eax, dword [ebp + 0xfdc]
mov ecx, dword [ebp + 0xfd8]
mov dword [esp + 0x7c], edi
test eax, eax
je 0x1021f55e
movzx edx, byte [eax + 0x88]
jmp 0x1021f560
xor edx, edx
test ecx, ecx
je 0x1021f56d
movzx eax, byte [ecx + 0x88]
jmp 0x1021f56f
xor eax, eax
mov ecx, dword [ebx + 0x31cc]
add eax, edx
mov ebp, dword [ebx + eax*8 + 0x7c38]
mov eax, dword [ebx + eax*8 + 0x7c3c]
mov dword [esp + 0xa8], eax
imul ecx
mov dword [esp + 0x8c], ebp
mov ebx, eax
mov esi, edx
lea eax, [edi + ebp]
add ebx, 0x100
adc esi, 0
imul ecx
mov ecx, dword [esp + 0xa4]
mov ebp, eax
mov edi, edx
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x1a8]
mov byte [ecx + 0x89], al
shrd ebx, esi, 9
movzx ecx, al
sar esi, 9
add ebp, 0x100
adc edi, 0
shl ecx, 2
mov dword [esp + 0x3c], ecx
shrd ebp, edi, 9
mov al, byte [ecx + 0x108b5f48]
mov cl, byte [ecx + 0x108b5f98]
mov byte [esp + 0x1f], al
mov byte [esp + 0x12], cl
movzx eax, al
movzx ecx, cl
imul ecx, eax
mov eax, dword [esp + 0x48]
sar edi, 9
mov eax, dword [eax + 0xff4]
mov dword [esp + 0xb4], ecx
movzx ecx, byte [edx + 0x108b5cc8]
mov dword [esp + 0x20], ecx
test eax, eax
jns 0x1021f633
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx + 0x14]
add ecx, 3
sar eax, cl
mov ecx, dword [esp + 0x20]
add ecx, eax
movzx edx, byte [edx + 0x108b5ce0]
sar ecx, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0xffc]
test eax, eax
jns 0x1021f659
mov ecx, dword [ecx + 0x18]
add ecx, 3
sar eax, cl
add edx, eax
push 0x90
lea eax, [esp + 0xe8]
sar edx, 2
push 0
push eax
mov dword [esp + 0xac], edx
call fcn.10513d40
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x1a0]
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x1a4]
mov dword [esp + 0x160], eax
cmp edi, esi
jg 0x1021f6c9
jl 0x1021f6b9
cmp ebp, ebx
jae 0x1021f6c9
mov dword [esp + 0x154], ebp
mov dword [esp + 0x158], edi
jmp 0x1021f6d7
mov dword [esp + 0x154], ebx
mov dword [esp + 0x158], esi
mov edi, dword [esp + 0x1a8]
lea eax, [esp + 0x10c]
push eax
lea eax, [esp + 0xf0]
mov dword [esp + 0x130], 0
push eax
mov eax, dword [esp + 0x50]
xorps xmm0, xmm0
add eax, 0x10
movlpd qword [esp + 0x13c], xmm0
push eax
push edi
movlpd qword [esp + 0x14c], xmm0
movlpd qword [esp + 0x154], xmm0
mov byte [esp + 0x15c], 1
mov dword [esp + 0x140], 0
call fcn.1007f100
xor ecx, ecx
mov dword [esp + 0x50], 0
add esp, 0x10
mov dword [esp + 0x44], ecx
cmp dword [esp + 0xa0], ecx
jle 0x10220129
movzx eax, byte [esp + 0x1f]
movzx edx, byte [esp + 0x13]
mov esi, dword [esp + 0x20]
mov dword [esp + 0xb8], eax
movzx eax, byte [esp + 0x12]
mov dword [esp + 0x78], edx
mov dword [esp + 0xbc], eax
nop dword [eax + eax]
cmp dword [esp + 0x168], 0
jne 0x10220133
xor eax, eax
mov dword [esp + 0x74], eax
test esi, esi
jle 0x10220111
mov ebp, dword [esp + 0x14]
cmp dword [esp + 0x164], 0
jne 0x10220102
lea ebx, [esp + 0xec]
lea esi, [esp + 0x10c]
add ebx, eax
add esi, ecx
mov dword [esp + 0x88], ebx
mov dword [esp + 0xb0], esi
cmp edx, 3
ja case.default.0x1021f7d7
jmp dword [edx*4 + 0x10220330]
mov dl, byte [ebx]
movzx eax, dl
shr eax, 3
movsx ecx, byte [eax + 0x108aba4c]
mov al, byte [esi]
mov byte [esp + 0x12], al
movzx eax, al
shr eax, 3
movsx eax, byte [eax + 0x108aba4c]
add ecx, eax
movsx eax, byte [ecx + 0x108b77a0]
mov dword [esp + 0x38], eax
test edi, edi
jne 0x1021f820
mov dword [esp + 0x34], edi
jmp 0x1021fb26
movsx eax, dl
mov ecx, 4
and eax, 7
mov edx, 4
cmp eax, edx
cmovb edx, eax
movsx eax, byte [esp + 0x12]
and eax, 7
cmp eax, ecx
cmovb ecx, eax
lea eax, [edx + edx*4]
movzx eax, byte [ecx + eax + 0x108b77d0]
jmp 0x1021fb22
xor ecx, ecx
xor edx, edx
movzx eax, byte [ebx + edx]
inc edx
shr eax, 3
movsx eax, byte [eax + 0x108b77ec]
add ecx, eax
cmp edx, 2
jl 0x1021f856
xor edx, edx
nop
movzx eax, byte [esi + edx]
inc edx
shr eax, 3
movsx eax, byte [eax + 0x108b77ec]
add ecx, eax
cmp edx, 2
jl 0x1021f870
movsx eax, byte [ecx + 0x108b7810]
mov dword [esp + 0x38], eax
cmp edi, 3
jne 0x1021f8a3
mov dword [esp + 0x34], 0
jmp 0x1021fb26
xor edx, edx
xor edi, edi
xor ecx, ecx
nop dword [eax]
movsx eax, byte [ebx + ecx]
inc ecx
or edx, eax
cmp ecx, 2
jl 0x1021f8b0
and edx, 7
mov ebp, 4
cmp edx, ebp
cmovb ebp, edx
xor ecx, ecx
nop dword [eax + eax]
movsx eax, byte [esi + ecx]
inc ecx
or edi, eax
cmp ecx, 2
jl 0x1021f8d0
and edi, 7
lea eax, [ebp*4]
mov ecx, 4
cmp edi, ecx
cmovb ecx, edi
add eax, ebp
movzx eax, byte [ecx + eax + 0x108b7834]
jmp 0x1021fb1e
xor ecx, ecx
xor edx, edx
movzx eax, byte [ebx + edx]
inc edx
shr eax, 3
movsx eax, byte [eax + 0x108b7850]
add ecx, eax
cmp edx, 4
jl 0x1021f903
xor edx, edx
nop dword [eax + eax]
movzx eax, byte [esi + edx]
inc edx
shr eax, 3
movsx eax, byte [eax + 0x108b7850]
add ecx, eax
cmp edx, 4
jl 0x1021f920
movsx eax, byte [ecx + 0x108b7878]
mov dword [esp + 0x38], eax
cmp edi, 6
jne 0x1021f953
mov dword [esp + 0x34], 0
jmp 0x1021fb26
xor edx, edx
xor edi, edi
xor ecx, ecx
nop dword [eax]
movsx eax, byte [ebx + ecx]
inc ecx
or edx, eax
cmp ecx, 4
jl 0x1021f960
and edx, 7
mov ebp, 4
cmp edx, ebp
cmovb ebp, edx
xor ecx, ecx
nop dword [eax + eax]
movsx eax, byte [esi + ecx]
inc ecx
or edi, eax
cmp ecx, 4
jl 0x1021f980
and edi, 7
lea eax, [ebp*4]
mov ecx, 4
cmp edi, ecx
cmovb ecx, edi
add eax, ebp
movzx eax, byte [ecx + eax + 0x108b789c]
jmp 0x1021fb1e
xor ecx, ecx
xor edx, edx
movzx eax, byte [ebx + edx]
inc edx
shr eax, 3
movsx eax, byte [eax + 0x108b78b8]
add ecx, eax
cmp edx, 8
jl 0x1021f9b3
xor edx, edx
nop dword [eax + eax]
movzx eax, byte [esi + edx]
inc edx
shr eax, 3
movsx eax, byte [eax + 0x108b78b8]
add ecx, eax
cmp edx, 8
jl 0x1021f9d0
movsx eax, byte [ecx + 0x108b78e0]
mov dword [esp + 0x38], eax
cmp edi, 9
jne 0x1021fa03
mov dword [esp + 0x34], 0
jmp 0x1021fb26
xor edx, edx
xor edi, edi
xor ecx, ecx
nop dword [eax]
movsx eax, byte [ebx + ecx]
inc ecx
or edx, eax
cmp ecx, 8
jl 0x1021fa10
and edx, 7
mov ebp, 4
cmp edx, ebp
cmovb ebp, edx
xor ecx, ecx
nop dword [eax + eax]
movsx eax, byte [esi + ecx]
inc ecx
or edi, eax
cmp ecx, 8
jl 0x1021fa30
and edi, 7
lea eax, [ebp*4]
mov ecx, 4
cmp edi, ecx
cmovb ecx, edi
add eax, ebp
movzx eax, byte [ecx + eax + 0x108b7904]
jmp 0x1021fb1e
mov eax, dword [esp + 0x3c]
xor ecx, ecx
xor edx, edx
mov edi, dword [eax + 0x108b5f98]
mov ebp, dword [eax + 0x108b5f48]
mov dword [esp + 0x50], edi
movzx eax, byte [ebx + edx]
inc edx
shr eax, 3
movsx eax, byte [eax + 0x108ab9bc]
add ecx, eax
cmp edx, ebp
jl 0x1021fa77
xor edx, edx
nop
movzx eax, byte [esi + edx]
inc edx
shr eax, 3
movsx eax, byte [eax + 0x108ab9bc]
add ecx, eax
cmp edx, edi
jl 0x1021fa90
movsx eax, byte [ecx + 0x108b7618]
mov ecx, dword [esp + 0x1a8]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
cmp ecx, dword [eax + 0x108b6178]
jne 0x1021fad1
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x34], 0
jmp 0x1021fb26
xor edx, edx
xor edi, edi
xor ecx, ecx
movsx eax, byte [ebx + ecx]
inc ecx
or edx, eax
cmp ecx, ebp
jl 0x1021fad7
and edx, 7
mov ebp, 4
cmp edx, ebp
cmovb ebp, edx
mov edx, dword [esp + 0x50]
xor ecx, ecx
movsx eax, byte [esi + ecx]
inc ecx
or edi, eax
cmp ecx, edx
jl 0x1021faf5
and edi, 7
lea eax, [ebp*4]
mov ecx, 4
cmp edi, ecx
cmovb ecx, edi
add eax, ebp
movzx eax, byte [ecx + eax + 0x108b7698]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x174]
push eax
mov eax, dword [esp + 0xb0]
push 0
push edi
add eax, 0x3abf0
push ebp
push eax
call fcn.10107230
lea eax, [esp + 0xdc]
push eax
push 0
push 1
push 0
push edi
call fcn.101071f0
mov edi, dword [esp + 0x68]
lea eax, [esp + 0x19c]
push eax
push dword [esp + 0x1d4]
push dword [esp + 0xa4]
push dword [esp + 0x78]
push edi
push 0
push ebp
call fcn.10107490
add esp, 0x44
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x178]
push eax
push edi
push 0
push ebp
call fcn.10107070
push 0
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x190]
push dword [esp + 0x6c]
push edi
push 0
push ebp
call fcn.10449920
movzx ecx, byte [esp + 0x1a5]
add esp, 0x30
mov dword [esp + 0x70], eax
movzx eax, byte [esp + 0x174]
shl ecx, 4
add ecx, eax
mov eax, dword [ecx*8 + 0x107edf00]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x50], eax
mov al, byte [esp + 0x13]
cmp al, 4
je 0x1021fc21
cmp al, 0xc
je 0x1021fc21
cmp al, 0xb
je 0x1021fc21
cmp al, 0x11
je 0x1021fc17
cmp al, 0x12
je 0x1021fc17
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x108b6128]
mov dword [esp + 0x18], eax
jmp 0x1021fc29
mov dword [esp + 0x18], 0x200
jmp 0x1021fc29
mov dword [esp + 0x18], 0x400
push dword [esp + 0x4c]
call fcn.1015a520
mov edx, dword [esp + 0x18]
add eax, eax
mov ebp, 2
add esp, 4
sub ebp, eax
mov eax, edi
shl eax, 6
mov edi, dword [edx + 0xc]
mov ecx, dword [edx + 4]
add edi, eax
add ecx, eax
mov dword [esp + 0x90], ebp
mov eax, dword [edx + 0x10e8]
mov dword [esp + 0x24], edi
test byte [eax + 0x8c], 8
je 0x1021fc8a
push dword [edx + 0x1b58]
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x20]
push ecx
push edi
call dword [0x10b48604]
add esp, 0x14
jmp 0x1021fe0e
cmp dword [esp + 0x50], 0
je 0x1021fdfa
cmp dword [edx + 0x23b74], 0
je 0x1021fdfa
cmp dword [esp + 0x18], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x98], xmm0
mov edx, dword [esp + 0x9c]
movlpd qword [esp + 0x5c], xmm0
mov dword [esp + 0x6c], 0
jle 0x1021fde1
mov eax, dword [esp + 0x60]
sub ecx, edi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0x2c], edx
nop word [eax + eax]
mov ecx, dword [esp + 0xc0]
mov ebx, dword [esp + 0xc4]
movsx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x50]
movzx eax, byte [eax + ecx]
cdq
mov ebp, edx
mov ecx, eax
mov edx, dword [esp + 0x24]
mov eax, dword [edi]
push ebp
push ecx
sub eax, dword [ebx + edx]
cdq
push edx
push eax
mov dword [esp + 0xa8], ecx
call fcn.10511b50
push ebp
push dword [esp + 0x9c]
mov dword [esp + 0x64], eax
mov ebx, edx
mov eax, dword [edi]
cdq
push edx
push eax
call fcn.10511b50
push ebx
mov ebp, eax
mov edi, edx
mov eax, dword [esp + 0x60]
push eax
push ebx
push eax
call fcn.10511b50
add eax, 0x200
push edi
adc edx, 0
shrd eax, edx, 0xa
push ebp
sar edx, 0xa
add esi, eax
push edi
adc dword [esp + 0x34], edx
push ebp
call fcn.10511b50
mov edi, dword [esp + 0x24]
add eax, 0x200
adc edx, 0
shrd eax, edx, 0xa
sar edx, 0xa
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
adc dword [esp + 0x2c], edx
inc eax
add edi, 4
mov dword [esp + 0x6c], eax
mov dword [esp + 0x24], edi
cmp eax, dword [esp + 0x18]
jl 0x1021fd00
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x88]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x5c], esi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edx
jmp 0x1021fe10
mov edi, dword [esp + 0x98]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edx
jmp 0x1021fe10
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x1c]
push ecx
push edi
call dword [0x10b486d0]
add esp, 0x10
mov ecx, edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
test ebp, ebp
jns 0x1021fe71
movq xmm1, qword [esp + 0x54]
mov eax, ebp
neg eax
neg ebp
movd xmm0, eax
psllq xmm1, xmm0
movd xmm0, ebp
movq qword [esp + 0x54], xmm1
movq xmm1, qword [esp + 0x64]
mov eax, dword [esp + 0x58]
psllq xmm1, xmm0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
movq qword [esp + 0x90], xmm1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x90]
jmp 0x1021fe95
mov edx, ecx
mov ecx, ebp
call fcn.10511c50
mov dword [esp + 0x2c], eax
mov ecx, ebp
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x68]
call fcn.10511c50
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
imul dword [edx + 0x31cc]
mov esi, dword [esp + 0x40]
mov ebp, eax
mov edi, edx
mov eax, dword [esp + 0x2c]
add ebp, 0x100
mov edx, dword [esp + 0x24]
adc edi, 0
shld ecx, eax, 7
shrd ebp, edi, 9
shl eax, 7
sar edi, 9
add ebp, eax
mov eax, dword [esp + 0x14]
adc edi, ecx
mov ecx, dword [esp + 0x18]
shld edx, ecx, 7
mov eax, dword [eax + 0x10]
shl ecx, 7
mov dword [esp + 0x88], edx
mov dword [esp + 0x90], ecx
cmp word [eax + esi*2], 0
mov esi, dword [esp + 0xb0]
sete byte [esp + 0x12]
cmp dword [esp + 0x12c], 0x7fffffff
je 0x1021ffdb
mov eax, dword [esp + 0x70]
cmp eax, 0x7fffffff
je 0x1021ffdb
cdq
mov dword [esp + 0x30], eax
mov ecx, edx
mov eax, dword [esp + 0x12c]
cdq
add dword [esp + 0x30], eax
adc ecx, edx
test ecx, ecx
jg 0x1021ff59
jl 0x1021ff4c
cmp dword [esp + 0x30], 0x7fffffff
jae 0x1021ff59
mov eax, dword [esp + 0x70]
add dword [esp + 0x12c], eax
jmp 0x1021ff64
mov dword [esp + 0x12c], htons
mov eax, dword [esp + 0x2c]
add dword [esp + 0x134], eax
mov eax, dword [esp + 0x28]
adc dword [esp + 0x138], eax
mov ecx, dword [esp + 0x148]
cmp ecx, 0x7fffffff
jg 0x1021ffc0
mov eax, dword [esp + 0x144]
jl 0x1021ff97
cmp eax, 0xffffffff
jae 0x1021ffc0
mov edx, dword [esp + 0x24]
cmp edx, 0x7fffffff
jg 0x1021ffc0
jl 0x1021ffac
cmp dword [esp + 0x18], 0xffffffff
jae 0x1021ffc0
add eax, dword [esp + 0x18]
mov dword [esp + 0x144], eax
adc ecx, edx
mov dword [esp + 0x148], ecx
mov al, byte [esp + 0x12]
and byte [esp + 0x14c], al
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x88]
jmp 0x1022003b
mov dword [esp + 0x12c], htons
mov dword [esp + 0x134], 0xffffffff
mov dword [esp + 0x138], htons
mov dword [esp + 0x13c], 0xffffffff
mov dword [esp + 0x140], htons
mov dword [esp + 0x144], 0xffffffff
mov dword [esp + 0x148], htons
mov byte [esp + 0x14c], 0
mov dword [esp + 0x130], 0
cmp edi, edx
jg 0x10220045
jl 0x10220049
cmp ebp, ecx
jb 0x10220049
mov ebp, ecx
mov edi, edx
mov ecx, dword [esp + 0x154]
mov eax, dword [esp + 0x158]
add ecx, ebp
mov dword [esp + 0x154], ecx
adc eax, edi
mov dword [esp + 0x158], eax
cmp eax, dword [esp + 0x1a4]
jg 0x102200e6
jl 0x1022007d
cmp ecx, dword [esp + 0x1a0]
ja 0x102200e6
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov eax, dword [ebp + 0x14]
movzx edi, byte [eax + ecx]
mov eax, dword [esp + 0x3c]
push dword [eax + 0x108b5f48]
push edi
push ebx
call fcn.10513d40
mov eax, dword [esp + 0x48]
push dword [eax + 0x108b5f98]
push edi
push esi
call fcn.10513d40
mov eax, dword [esp + 0xcc]
add esp, 0x18
add dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0xb8]
mov edi, dword [esp + 0x1a8]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x74], eax
cmp eax, dword [esp + 0x20]
jl 0x1021f7a0
jmp 0x1022010d
mov edi, dword [esp + 0x1a8]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x164], 1
jmp 0x1022010d
mov dword [esp + 0x168], 1
mov esi, dword [esp + 0x20]
add ecx, dword [esp + 0xbc]
mov dword [esp + 0x44], ecx
cmp ecx, dword [esp + 0xa0]
jl 0x1021f780
cmp dword [esp + 0x168], 0
je 0x10220193
mov dword [esp + 0x12c], htons
mov dword [esp + 0x134], 0xffffffff
mov dword [esp + 0x138], htons
mov dword [esp + 0x13c], 0xffffffff
mov dword [esp + 0x140], htons
mov dword [esp + 0x144], 0xffffffff
mov dword [esp + 0x148], htons
mov byte [esp + 0x14c], 0
mov dword [esp + 0x130], 0
mov ebp, dword [esp + 0x84]
movups xmm0, xmmword [esp + 0x12c]
movups xmmword [ebp], xmm0
movups xmm0, xmmword [esp + 0x13c]
movups xmmword [ebp + 0x10], xmm0
movq xmm0, qword [esp + 0x14c]
movq qword [ebp + 0x20], xmm0
mov edi, dword [ebp]
cmp edi, 0x7fffffff
jne 0x102201d5
or eax, 0xffffffff
mov edx, edi
jmp 0x10220317
mov bl, byte [ebp + 0x20]
test bl, bl
je 0x1022021f
cmp dword [esp + 0x80], 0
je 0x1022021f
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xa8]
mov ecx, dword [ebp + 0x1c]
imul dword [edx + 0x31cc]
mov esi, eax
mov eax, dword [ebp + 0x18]
add esi, 0x100
adc edx, 0
shld ecx, eax, 7
shrd esi, edx, 9
shl eax, 7
sar edx, 9
add esi, eax
adc edx, ecx
jmp 0x10220315
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x14]
add eax, edi
add eax, dword [esp + 0x7c]
imul dword [ecx + 0x31cc]
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebp + 8]
add esi, 0x100
adc edx, 0
shld ecx, eax, 7
shrd esi, edx, 9
shl eax, 7
sar edx, 9
add esi, eax
mov eax, dword [esp + 0x7c]
adc edx, ecx
add eax, edi
cmp dword [esp + 0x80], 0
mov dword [ebp], eax
mov eax, edx
mov ebp, esi
mov dword [esp + 0x8c], eax
je 0x10220315
test bl, bl
jne 0x10220315
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x48]
movzx eax, byte [eax + 0x9f]
and eax, 7
cmp dword [ecx + eax*4 + 0x1a9c], 0
jne 0x10220315
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xa8]
mov esi, dword [esp + 0x84]
imul dword [edx + 0x31cc]
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 0x1c]
mov ebx, eax
add ebx, 0x100
mov edi, edx
mov edx, dword [esp + 0x8c]
mov eax, ecx
adc edi, 0
shld esi, eax, 7
shrd ebx, edi, 9
shl eax, 7
sar edi, 9
add ebx, eax
adc edi, esi
mov esi, ebp
cmp edi, edx
jg 0x10220315
jl 0x102202f4
cmp ebx, ebp
ja 0x10220315
mov ecx, dword [esp + 0x84]
mov esi, ebx
mov edx, edi
mov eax, dword [ecx + 0x18]
mov dword [ecx + 8], eax
mov eax, dword [ecx + 0x1c]
mov dword [ecx], 0
mov dword [ecx + 0xc], eax
mov byte [ecx + 0x20], 1
mov eax, esi
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x180
ret