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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
mov esi, ecx
mov byte [esp + 0xb], 0
push edi
xor ecx, ecx
mov dword [esp + 0x10], esi
mov ebx, edx
mov dword [esp + 0x50], ecx
mov edi, dword [esi + 8]
xor edx, edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], edx
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x54], ecx
cmp dword [edi + 0x70], ecx
jg 0x1021da3c
push edx
push edx
push edx
mov edx, 0x11
mov ecx, edi
call fcn.101c8070
add esp, 0xc
mov dword [esp + 0x54], eax
jmp 0x1021da5f
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], edx
mov ecx, dword [ebp + 8]
xor edx, edx
mov edi, dword [ebp + 0x14]
xorps xmm0, xmm0
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 0x10]
mov edi, dword [edi + 0x48]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x20]
movlpd qword [esp + 0x58], xmm0
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
shl eax, 4
add eax, ebx
mov dword [esp + 0x48], eax
cmp ebx, eax
jae 0x1021dc1c
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
jmp 0x1021dab9
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x28]
mov esi, dword [ebx]
mov eax, dword [edx]
or eax, dword [edx + 4]
jne 0x1021db2a
test byte [ebx + 0xa], 2
jne 0x1021db2a
test byte [esi + 4], 1
jne 0x1021db2a
mov eax, 3
mov dword [esp + 0x68], fcn.101e06e0
mov word [esp + 0x78], ax
mov edx, esi
mov eax, dword [ecx + 0x2c]
lea ecx, [esp + 0x64]
mov dword [esp + 0x6c], 0x101e0580
mov dword [esp + 0x7c], eax
call fcn.101db0b0
cmp word [esp + 0x78], 0
je 0x1021db2a
mov edx, esi
mov esi, dword [esp + 0x10]
push 0
push 0
mov ecx, dword [esi]
call fcn.101df3f0
mov edx, dword [esp + 0x38]
mov ecx, esi
push eax
call fcn.101dee30
add esp, 0xc
mov dword [esp + 0x30], eax
push dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.1021d900
add esp, 8
test eax, eax
je 0x1021dbfd
mov edx, dword [ebx + 0x1c]
xor esi, esi
cmp edx, 0x40
jl 0x1021db59
mov dword [esp + 0x38], SysReAllocString
jmp 0x1021db72
mov eax, edx
xor ecx, ecx
bts esi, eax
cmp eax, 0x20
cmovae ecx, esi
xor esi, ecx
cmp eax, 0x40
cmovae ecx, esi
mov dword [esp + 0x38], ecx
cmp byte [esp + 0xf], 0
jne 0x1021db9f
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
push dword [eax + ecx*4]
push dword [edx]
push str.automatic_index_on__s__s_
push 0x11c
call fcn.101a75e0
add esp, 0x10
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x38]
mov ecx, esi
and ecx, dword [esp + 0x24]
and eax, dword [esp + 0x1c]
or ecx, eax
jne 0x1021dbfd
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x44], eax
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
call fcn.1021e8b0
add esp, 4
test eax, eax
jne 0x1021e3b8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
or dword [esp + 0x24], esi
mov edx, dword [esp + 0x44]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x14], edx
mov dword [eax + ecx*4], ebx
mov ecx, dword [esp + 0x1c]
or ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
jmp 0x1021dc05
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add ebx, 0x30
cmp ebx, dword [esp + 0x48]
jb 0x1021dab6
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
jmp 0x1021dc24
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
movzx eax, dx
not ecx
mov edx, dword [esp + 0x28]
or ecx, 0x80000000
not ebx
mov word [edx + 0x28], ax
mov word [edx + 0x18], ax
mov eax, dword [ebp + 8]
mov dword [edx + 0x24], 0x4241
and ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
and ebx, edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], ebx
mov ebx, 0x3f
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], edx
movzx ecx, word [eax + 0x2a]
mov dword [esp + 0x44], ecx
movzx eax, cx
cmp bx, cx
jge 0x1021dc7a
mov dword [esp + 0x38], ebx
jmp 0x1021dc88
movsx ebx, cx
mov dword [esp + 0x38], ebx
xor ebx, ebx
cmp bx, ax
jge 0x1021dccc
mov edi, dword [esp + 0x38]
xor ebx, ebx
mov esi, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
mov eax, ebx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x24]
and ecx, esi
or edx, ecx
je 0x1021dcb7
inc dword [esp + 0x14]
inc ebx
cmp ebx, edi
jl 0x1021dc92
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
jg 0x1021dceb
jl 0x1021dcdb
test edx, edx
jae 0x1021dceb
movsx eax, cx
mov ecx, dword [esp + 0x14]
add ecx, 0xffffffc1
add ecx, eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x58]
mov ecx, dword [esi]
push eax
push 0
lea edx, [edx + 1]
call fcn.101f0320
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x1021e3bc
mov ecx, dword [esp + 0x28]
xor ebx, ebx
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [ecx + 0x20], eax
mov ecx, dword [esp + 0x3c]
mov dword [eax], str.auto_index
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x48]
jae 0x1021de40
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x40], ecx
push dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, eax
push dword [ebp + 0xc]
call fcn.1021d900
add esp, 8
test eax, eax
je 0x1021de27
mov eax, dword [esp + 0x34]
xor edx, edx
mov eax, dword [eax + 0x1c]
movzx ecx, ax
mov dword [esp + 0x58], ecx
cmp eax, 0x40
jl 0x1021dd8e
mov esi, SysReAllocString
jmp 0x1021dda1
xor esi, esi
bts edx, eax
cmp eax, 0x20
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
cmovae esi, edx
mov ecx, edx
mov eax, esi
and ecx, dword [esp + 0x40]
and eax, dword [esp + 0x44]
or ecx, eax
jne 0x1021de27
mov eax, dword [esp + 0x34]
or dword [esp + 0x40], edx
mov edx, dword [esp + 0x58]
or dword [esp + 0x44], esi
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov word [eax + ebx*2], dx
test dword [ecx + 4], 0x200
je 0x1021dddf
mov esi, dword [ecx + 0xc]
mov edx, dword [ecx + 0x10]
jmp 0x1021dde5
mov esi, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
test dword [edx + 4], 0x100
jne 0x1021de08
test esi, esi
je 0x1021ddfb
test dword [esi + 4], 0x100
jne 0x1021de06
mov ecx, edi
call fcn.101dde30
test eax, eax
jne 0x1021de13
mov edx, esi
mov ecx, edi
call fcn.101dde30
test eax, eax
je 0x1021de17
mov ecx, dword [eax]
jmp 0x1021de1c
mov ecx, 0x102ab7c8
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
mov dword [eax + ebx*4], ecx
inc ebx
mov eax, dword [esp + 0x34]
add eax, 0x30
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x48]
jb 0x1021dd57
mov edi, dword [esp + 0x20]
xor esi, esi
cmp dword [esp + 0x38], esi
jle 0x1021de90
mov edi, dword [esp + 0x18]
nop dword [eax]
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x24]
and ecx, dword [esp + 0x1c]
or edx, ecx
je 0x1021de85
mov eax, dword [edi + 4]
mov word [eax + ebx*2], si
mov eax, dword [edi + 0x20]
mov dword [eax + ebx*4], 0x102ab7c8
inc ebx
inc esi
cmp esi, dword [esp + 0x38]
jl 0x1021de50
mov edi, dword [esp + 0x20]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
jg 0x1021ded3
jl 0x1021dea1
cmp dword [eax + 0x38], 0
jae 0x1021ded3
mov esi, dword [esp + 0x3c]
mov eax, 0x3f
mov edx, dword [esp + 0x18]
cmp ax, word [esi + 0x2a]
jge 0x1021ded7
mov ecx, eax
mov eax, dword [edx + 4]
mov word [eax + ebx*2], cx
inc ecx
mov eax, dword [edx + 0x20]
mov dword [eax + ebx*4], 0x102ab7c8
inc ebx
movsx eax, word [esi + 0x2a]
cmp ecx, eax
jl 0x1021deb6
jmp 0x1021ded7
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
or ecx, 0xffffffff
mov esi, dword [esp + 0x10]
mov word [eax + ebx*2], cx
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x14]
inc edx
mov dword [eax + ebx*4], 0x102ab7c8
mov eax, dword [esi + 0x28]
mov dword [ecx + 8], eax
inc dword [esi + 0x28]
mov eax, dword [ecx + 8]
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x58], eax
cmp dword [edi + 0x70], ecx
jg 0x1021df24
push 0
push edx
push eax
mov edx, 0x63
mov ecx, edi
call fcn.101c8070
add esp, 0xc
jmp 0x1021df57
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x63
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 8]
mov ecx, esi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x58], eax
call fcn.101f2600
mov esi, eax
test esi, esi
je 0x1021df9d
mov edx, dword [esp + 0x58]
mov ecx, dword [edx]
cmp byte [ecx + 0x51], 0
je 0x1021df8b
push esi
mov edx, 0xfffffff7
call fcn.101c8d80
add esp, 4
jmp 0x1021df9d
mov eax, dword [edx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], esi
mov edx, dword [ebp + 0x14]
movzx eax, byte [edx + 0x34]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 0x30], 0x10
lea esi, [eax + ecx*8]
mov dword [esp + 0x4c], esi
je 0x1021e0af
mov ecx, dword [edi + 0x6c]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], ecx
cmp dword [edi + 0x70], ecx
jg 0x1021dff4
push 0
push 0
push 0
mov edx, 0x45
mov ecx, edi
call fcn.101c8070
mov edx, dword [esp + 0x54]
add esp, 0xc
mov dword [esp + 0x50], eax
jmp 0x1021e027
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
mov esi, dword [esi + 0x20]
cmp dword [edi + 0x70], ecx
jg 0x1021e04b
push esi
push 0
push edx
mov edx, 0xd
mov ecx, edi
call fcn.101c8070
mov edx, dword [esp + 0x54]
add esp, 0xc
jmp 0x1021e07a
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [edi + 0x6c]
cmp dword [edi + 0x70], esi
jg 0x1021e09a
push 0
push 0
push edx
mov edx, 0xe
mov ecx, edi
call fcn.101c8070
add esp, 0xc
mov esi, eax
jmp 0x1021e105
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xe
jmp 0x1021e0e5
mov esi, dword [edi + 0x6c]
mov edx, dword [edx + 4]
cmp dword [edi + 0x70], esi
jg 0x1021e0d2
push 0
push 0
push edx
mov edx, 0x25
mov ecx, edi
call fcn.101c8070
add esp, 0xc
mov esi, eax
jmp 0x1021e105
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x25
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 4], edx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1021e133
mov eax, dword [esp + 0x10]
push 0x10
dec dword [eax + 0x38]
mov edx, dword [eax + 0x38]
push edx
push ecx
push eax
mov dword [esp + 0x3c], edx
call fcn.101e54b0
mov eax, dword [esp + 0x38]
add esp, 0x10
or dword [eax + 0x24], 0x20000
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 0x13]
test al, al
jne 0x1021e146
inc dword [ecx + 0x2c]
mov eax, dword [ecx + 0x2c]
jmp 0x1021e155
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x94]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push eax
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
call fcn.101f4790
mov ecx, dword [edi + 0x6c]
add esp, 0x18
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
mov dword [esp + 0x58], eax
cmp dword [edi + 0x70], ecx
jg 0x1021e1a3
mov edx, dword [esp + 0x3c]
mov ecx, edi
push 0
push edx
push eax
mov edx, 0x83
call fcn.101c8070
add esp, 0xc
jmp 0x1021e1d6
mov edx, dword [esp + 0x58]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4], 0x83
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
test ecx, ecx
jle 0x1021e1f0
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov edx, 0x10
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [edi + 0x6c]
cmp dword [esp + 0x30], 0
je 0x1021e224
mov edx, dword [edi + 0xc]
not dword [esp + 0x2c]
mov eax, dword [edx + 0x3c]
add eax, dword [edx + 0x38]
jns 0x1021e21a
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi + 0xc]
push edx
mov edx, edi
call fcn.101c8860
add esp, 4
jmp 0x1021e224
mov eax, dword [edx + 0x40]
mov edx, dword [esp + 0x2c]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x4c]
test byte [eax + 0x30], 0x10
je 0x1021e2d7
mov ecx, dword [esp + 0x50]
test ecx, ecx
jns 0x1021e23e
mov ecx, dword [edi + 0x6c]
dec ecx
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x1021e24d
mov ecx, 0x10318b00
jmp 0x1021e256
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x48]
mov edx, esi
add eax, ebx
mov ebx, dword [esp + 0x4c]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
push dword [eax + 8]
push dword [ebx + 0x28]
push dword [eax + 4]
call fcn.1021d860
mov ecx, dword [edi + 0x6c]
add esp, 0xc
cmp dword [edi + 0x70], ecx
jg 0x1021e2a2
push 0
push esi
push 0
mov edx, 0xb
mov ecx, edi
call fcn.101c8070
add esp, 0xc
and dword [ebx + 0x30], 0xffffffef
jmp 0x1021e342
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
and dword [ebx + 0x30], 0xffffffef
jmp 0x1021e342
mov eax, dword [ebp + 0x14]
lea edx, [esi + 1]
mov ecx, dword [edi + 0x6c]
mov ebx, dword [eax + 4]
cmp dword [edi + 0x70], ecx
jg 0x1021e2fd
push 0
push edx
push ebx
mov edx, 5
mov ecx, edi
call fcn.101c8070
add esp, 0xc
jmp 0x1021e32b
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
lea edx, [esi + 1]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x1021e342
lea ecx, [eax + eax*4]
mov edx, 3
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [edi]
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x1021e354
mov eax, 0x10318b00
jmp 0x1021e365
test esi, esi
lea eax, [edx - 1]
cmovns eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x10]
mov dword [eax + 8], edx
test ecx, ecx
je 0x1021e388
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x1021e388
movzx eax, al
mov dword [esi + eax*4 + 0x94], ecx
inc byte [esi + 0x13]
mov eax, dword [edi]
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x1021e39d
mov eax, 0x10318b00
mov dword [eax + 8], edx
jmp 0x1021e3bc
mov ecx, dword [esp + 0x54]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x1021e3bc
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1021e3cd
mov ecx, dword [esi]
mov edx, eax
call fcn.101df1b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret