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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
lea ebx, [esp + 0x70]
mov edx, 0x10170e00
mov ecx, ebx
push 0x12
call fcn.10023060
add esp, 4
mov esi, dword [esp + 0x70]
cmp esi, 0x80000000
je 0x10021eaa
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
jmp 0x10021eb1
xor eax, eax
mov edi, 1
push eax
push edi
push ebx
call fcn.100e7d10
add esp, 0xc
cmp byte [esp + 0x70], 0
sete al
cmp dword [esp + 0x74], 0x55f0
setae bl
and bl, al
test esi, 0x7fffffff
jne 0x10021f09
test bl, bl
je 0x10021f19
lea ecx, [esp + 0x64]
mov edx, 0x10170ddf
push 0xb
call fcn.10023060
add esp, 4
mov eax, dword [esp + 0x64]
cmp eax, 0x80000000
jne 0x10021f32
mov eax, dword [ebp + 8]
mov dword [eax], 0x80000000
jmp 0x10022413
push 1
push esi
push edi
call fcn.1000d080
add esp, 0xc
test bl, bl
jne 0x10021edd
mov esi, dword [ebp + 8]
mov edx, 0x10170ddf
mov ecx, esi
push 0xb
call fcn.10023060
add esp, 4
jmp 0x10022411
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
push 0xb
push 0x10170dea
mov dword [esp + 0x58], ecx
push ecx
mov dword [esp + 0x48], eax
push eax
lea eax, [esp + 0x80]
push eax
call fcn.100e28d0
add esp, 0x14
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0xa0]
mov edx, dword [esp + 0x7c]
cmp ecx, eax
mov edi, eax
mov dword [esp + 0x34], esi
cmova edi, ecx
cmp dword [esp + 0x70], 0
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 8], edi
je 0x1002238d
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x8c]
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x14]
dec ecx
cmp ecx, eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x94]
lea eax, [eax - 1]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
setb byte [esp + 0x33]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xa8]
lea eax, [ecx + eax - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x18], 0xffffffff
lea eax, [ebx + eax]
je 0x10022305
nop word [eax + eax]
cmp eax, edi
jb 0x1002207a
jmp 0x10022388
add ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x44]
add eax, ebx
cmp eax, edi
jae 0x10022388
movzx ecx, byte [esi + eax]
xor eax, eax
mov edx, 1
shld eax, edx, cl
shl edx, cl
test cl, 0x20
mov ecx, 0
cmovne eax, edx
cmovne edx, ecx
and eax, dword [esp + 0x28]
and edx, dword [esp + 0x4c]
or edx, eax
je 0x10022060
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [esi + ebx]
cmp eax, ecx
mov edi, ecx
mov ecx, dword [esp + 0x2c]
cmova edi, eax
mov eax, edi
mov dword [esp + 0x38], edi
cmp edi, ecx
cmova ecx, edi
nop word cs:[eax + eax]
nop
cmp ecx, eax
je 0x10022120
lea esi, [ebx + eax]
mov edi, ebx
cmp esi, dword [esp + 8]
jae 0x1002265f
mov ebx, dword [esp + 0x10]
lea esi, [eax + 1]
movzx ebx, byte [ebx + eax]
cmp bl, byte [edx + eax]
mov eax, esi
mov ebx, edi
je 0x100220d0
sub ebx, dword [esp + 0x14]
mov edi, dword [esp + 8]
mov dword [esp + 0x18], 0
add ebx, esi
mov esi, dword [esp + 0x34]
jmp 0x1002206c
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 8]
mov esi, dword [esp + 0x34]
nop dword [eax]
cmp dword [esp + 0x18], eax
jae 0x10022170
dec eax
cmp eax, dword [esp + 0x2c]
jae 0x1002268a
lea ecx, [eax + ebx]
cmp ecx, edi
jae 0x1002267e
mov edx, dword [esp + 0x10]
movzx edx, byte [edx + eax]
cmp dl, byte [esi + ecx]
je 0x10022130
mov eax, dword [esp + 0x58]
add ebx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
jmp 0x1002206c
mov dword [esp + 0x18], 0
jmp 0x10022268
add ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
add eax, ebx
cmp eax, edi
jae 0x10022388
movzx ecx, byte [esi + eax]
xor eax, eax
mov edx, 1
shld eax, edx, cl
shl edx, cl
test cl, 0x20
mov ecx, 0
cmovne eax, edx
cmovne edx, ecx
and eax, dword [esp + 0x28]
and edx, dword [esp + 0x4c]
or edx, eax
je 0x10022180
mov edx, dword [esp + 0x14]
mov eax, ebx
lea ecx, [esi + ebx]
mov edi, ebx
neg eax
nop dword [eax]
cmp dword [esp + 0x60], edx
je 0x10022210
lea esi, [ebx + edx]
cmp esi, dword [esp + 8]
jae 0x10022665
mov esi, dword [esp + 0x10]
dec eax
movzx ebx, byte [esi + edx]
mov esi, dword [esp + 0x34]
cmp bl, byte [ecx + edx]
lea edx, [edx + 1]
mov ebx, edi
je 0x100221d0
mov edi, dword [esp + 8]
neg eax
mov ebx, eax
jmp 0x10022184
test byte [esp + 0x33], 1
je 0x10022363
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x14]
add eax, ebx
nop dword [eax]
sub edx, 1
jb 0x10022260
cmp eax, dword [esp + 8]
jae 0x10022699
movzx ebx, byte [ecx]
dec ecx
cmp bl, byte [esi + eax]
lea eax, [eax - 1]
mov ebx, edi
je 0x10022230
add ebx, dword [esp + 0x40]
mov edi, dword [esp + 8]
jmp 0x10022184
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp]
mov dword [esp], ebx
add ecx, eax
lea edx, [eax + ebx]
mov ebx, ecx
sub edx, ecx
mov ecx, dword [esp + 0x1c]
mov eax, ecx
sub eax, dword [esp + 4]
cmp eax, edx
jb 0x1002230f
mov dword [esp + 0x38], ecx
mov edi, dword [esp + 4]
mov eax, dword [esp + 0xc]
add eax, edi
push edx
push ebx
push eax
mov ebx, edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x38]
add edi, ebx
mov eax, edi
mov dword [esp + 0x24], edi
sub ecx, edi
cmp ecx, 0xa
jbe 0x10022342
mov ebx, dword [esp]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 8]
add ebx, dword [esp + 0x2c]
mov dword [ecx + eax + 7], 0x20313120
mov dword [ecx + eax + 4], 0x2073776f
mov dword [ecx + eax], 0x646e6957
add eax, 0xb
mov dword [esp + 4], eax
mov dword [esp + 0x24], eax
mov dword [esp], ebx
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x18], 0xffffffff
lea eax, [ebx + eax]
jne 0x10022050
cmp eax, edi
jb 0x10022192
jmp 0x10022388
push edx
push dword [esp + 8]
lea eax, [esp + 0x24]
push eax
mov edi, edx
call fcn.10023dd0
mov edx, edi
add esp, 0xc
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0xc], ecx
jmp 0x10022291
push 0xb
push eax
lea eax, [esp + 0x24]
push eax
call fcn.10023dd0
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
jmp 0x100222bf
cmp dword [esp + 0x14], 0
mov dword [esp + 0x18], 0xffffffff
je 0x10022268
push 0x10170b64
push dword [esp + 0x30]
push dword [esp + 0x50]
call fcn.100dc320
mov esi, dword [esp]
jmp 0x100223ab
test edx, 0xff0000
je 0x1002241b
xor esi, esi
mov dword [esp + 4], 0
mov dword [esp + 0xc], 1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
sub edx, dword [esp + 4]
add esi, eax
add ecx, eax
sub ecx, esi
mov ebx, esi
mov esi, ecx
cmp edx, ecx
jb 0x10022638
mov edi, dword [esp + 4]
mov eax, dword [esp + 0xc]
add eax, edi
push esi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add edi, esi
mov ecx, dword [esp + 0x54]
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], edi
movsd xmm0, qword [esp + 0x1c]
test ecx, ecx
mov dword [eax + 8], edi
movsd qword [eax], xmm0
je 0x10022413
push 1
push ecx
push dword [esp + 0x44]
mov esi, eax
call fcn.1000d080
add esp, 0xc
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], 0
mov dword [esp + 0xc], 1
mov dword [esp], 0
jmp 0x1002247c
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 8]
mov dword [ecx + eax + 7], 0x20313120
mov dword [ecx + eax + 4], 0x2073776f
mov dword [ecx + eax], 0x646e6957
mov ecx, dword [esp + 0x10]
add eax, 0xb
xor dl, 1
mov dword [esp + 4], eax
mov dword [esp + 0x24], eax
mov dword [esp], ecx
test ecx, ecx
je 0x10022496
cmp ecx, edi
jae 0x10022490
cmp byte [esi + ecx], 0xc0
jge 0x10022496
jmp 0x100226a8
jne 0x100226a8
cmp ecx, edi
jne 0x100224b0
mov esi, dword [esp]
test dl, dl
mov ecx, edi
jne 0x100225a0
jmp 0x100223ab
movzx eax, byte [esi + ecx]
test al, al
js 0x100224c4
test dl, dl
je 0x1002253b
mov esi, dword [esp]
jmp 0x100225a0
mov dword [esp + 0x10], ecx
mov ebx, esi
mov ecx, eax
mov esi, dword [esp + 0x10]
and ecx, 0x1f
movzx esi, byte [ebx + esi + 1]
and esi, 0x3f
cmp al, 0xe0
jb 0x10022513
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x10]
shl esi, 6
movzx edx, byte [ebx + edx + 2]
and edx, 0x3f
or edx, esi
cmp al, 0xf0
jb 0x10022526
mov eax, dword [esp + 0x10]
and ecx, 7
shl edx, 6
shl ecx, 0x12
movzx eax, byte [ebx + eax + 3]
and eax, 0x3f
or eax, edx
or eax, ecx
jmp 0x1002252d
shl ecx, 6
or ecx, esi
mov esi, ebx
mov eax, ecx
mov ecx, dword [esp + 0x10]
test dl, dl
jne 0x100224bc
jmp 0x1002253b
shl ecx, 0xc
or edx, ecx
mov eax, edx
mov edx, dword [esp + 0x28]
mov esi, ebx
mov ecx, dword [esp + 0x10]
test dl, dl
jne 0x100224bc
mov edx, ecx
mov ecx, 1
cmp eax, 0x80
jb 0x10022562
mov ecx, 2
cmp eax, 0x800
jb 0x10022562
cmp eax, 0x10000
mov ecx, 4
sbb ecx, 0
add edx, ecx
mov ecx, edx
je 0x1002257d
cmp ecx, edi
jae 0x10022577
cmp byte [esi + ecx], 0xc0
jge 0x1002257d
jmp 0x100226a8
jne 0x100226a8
mov dl, 1
cmp ecx, edi
jne 0x1002258a
mov esi, dword [esp]
mov ecx, edi
jmp 0x100225a0
movzx eax, byte [esi + ecx]
test al, al
jns 0x100224bc
mov esi, dword [esp]
cmp al, 0xe0
nop dword [eax + eax]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ecx
add esi, eax
lea ebx, [eax + ecx]
mov dword [esp], esi
sub ebx, esi
mov esi, dword [esp + 0x1c]
mov eax, esi
sub eax, dword [esp + 4]
cmp eax, ebx
jb 0x10022610
mov edi, dword [esp + 4]
mov eax, dword [esp + 0xc]
add eax, edi
push ebx
push dword [esp + 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add edi, ebx
sub esi, edi
mov eax, edi
mov dword [esp + 0x24], edi
cmp esi, 0xa
ja 0x10022440
push 0xb
push eax
lea eax, [esp + 0x24]
push eax
call fcn.10023dd0
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
jmp 0x10022440
push ebx
push dword [esp + 8]
lea eax, [esp + 0x24]
push eax
call fcn.10023dd0
add esp, 0xc
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
jmp 0x100225c4
lea eax, [esp + 0x1c]
push esi
push dword [esp + 8]
push eax
call fcn.10023dd0
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
jmp 0x100223cd
add edi, dword [esp + 0x38]
jmp 0x10022669
add edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
cmp eax, edi
cmova edi, eax
push 0x10170b84
push eax
push edi
call fcn.100dc320
push 0x10170b74
push edi
push ecx
call fcn.100dc320
push 0x10170b64
push dword [esp + 0x30]
push eax
call fcn.100dc320
push 0x10170b74
push dword [esp + 0xc]
push eax
call fcn.100dc320
push 0x10170ba4
mov eax, dword [esp + 0xc]
push eax
push ecx
push eax
push dword [esp + 0x44]
call fcn.100e3530
nop dword [eax]