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

Disassembly:
push 0xffffffffffffffff
push 0x1005aeb0
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x1006c3ac]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006c3ac]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xfc]
lea edi, [ebp + 0x5c]
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
cmp edi, ebx
je 0x100218f2
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x18], 1
mov dword [esp + 0xf4], ebx
cmp byte [ebp + 0x38], 0
jne 0x10021917
cmp edi, ebx
je 0x10021910
cmp dword [esp + 0x18], ebx
je 0x10021910
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x10021ec3
push 0x20
call fcn.1003f860
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0xf4], 1
cmp esi, ebx
je 0x10021941
push esi
call fcn.100162f0
mov ebx, esi
mov dword [esp + 0x2c], esi
jmp 0x10021945
mov dword [esp + 0x2c], ebx
mov byte [esp + 0xf4], 0
test ebx, ebx
je 0x10021eaf
mov eax, dword [0x1006e504]
mov edx, dword [eax + 0xc]
mov ecx, 0x1006e504
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xf4], 2
mov eax, dword [ebp + 0x34]
inc eax
push eax
push 0x100606a0
lea edi, [esp + 0x28]
call fcn.100126a0
push 0x68
call fcn.1003f860
add esp, 0xc
mov dword [esp + 0x1c], eax
mov byte [esp + 0xf4], 3
mov edi, dword [esp + 0x20]
test eax, eax
je 0x100219b0
push eax
mov ecx, edi
call fcn.10014330
mov esi, eax
jmp 0x100219b2
xor esi, esi
mov byte [esp + 0xf4], 2
test esi, esi
je 0x10021e92
mov eax, str.nextid
lea ecx, [esp + 0x38]
call fcn.1000b630
lea ecx, [esp + 0x38]
push ecx
push ebx
mov byte [esp + 0xfc], 4
call fcn.100157e0
mov dword [eax], esi
mov byte [esp + 0xf4], 2
cmp dword [esp + 0x50], 8
jb 0x10021a01
mov edx, dword [esp + 0x3c]
push edx
call fcn.1003f2c6
add esp, 4
push 0x18
call fcn.1003f860
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0xf4], 5
test eax, eax
je 0x10021a23
push eax
call fcn.1002f390
jmp 0x10021a25
xor eax, eax
mov dword [esp + 0x24], eax
mov byte [esp + 0xf4], 2
test eax, eax
je 0x10021e92
mov edi, dword [ebp + 0x28]
cmp edi, dword [ebp + 0x2c]
jbe 0x10021a46
call fcn.1003f767
mov eax, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x1c]
mov ebx, edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x54], eax
cmp dword [ebp + 0x28], eax
jbe 0x10021a64
call fcn.1003f767
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x58], eax
jmp 0x10021a70
test esi, esi
je 0x10021a7a
cmp esi, dword [esp + 0x58]
je 0x10021a7f
call fcn.1003f767
cmp ebx, dword [esp + 0x54]
je 0x10021cce
test esi, esi
jne 0x10021ac0
call fcn.1003f767
cmp ebx, dword [esi + 0x10]
jb 0x10021a9c
call fcn.1003f767
push 0x20
call fcn.1003f860
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
mov byte [esp + 0xf4], 6
test edi, edi
je 0x10021ac4
push edi
call fcn.100162f0
jmp 0x10021ac6
mov esi, dword [esi]
jmp 0x10021a92
xor edi, edi
mov byte [esp + 0xf4], 2
test edi, edi
je 0x10021c9d
push 0x68
call fcn.1003f860
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0xf4], 7
test eax, eax
je 0x10021afc
mov ecx, dword [ebx]
push eax
call fcn.10014330
mov esi, eax
jmp 0x10021afe
xor esi, esi
mov byte [esp + 0xf4], 2
test esi, esi
je 0x10021c55
mov eax, 0x10060a30
lea ecx, [esp + 0x38]
call fcn.1000b630
lea ecx, [esp + 0x38]
push ecx
push edi
mov byte [esp + 0xfc], 8
call fcn.100157e0
mov dword [eax], esi
lea esi, [esp + 0x38]
mov byte [esp + 0xf4], 2
call fcn.10002040
push 0x68
call fcn.1003f860
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0xf4], 9
test eax, eax
je 0x10021b69
mov ecx, dword [ebx + 4]
push eax
call fcn.10014330
mov esi, eax
jmp 0x10021b6b
xor esi, esi
mov byte [esp + 0xf4], 2
test esi, esi
je 0x10021c2f
mov eax, 0x10060a44
lea ecx, [esp + 0x38]
call fcn.1000b630
lea edx, [esp + 0x38]
push edx
push edi
mov byte [esp + 0xfc], 0xa
call fcn.100157e0
mov dword [eax], esi
lea esi, [esp + 0x38]
mov byte [esp + 0xf4], 2
call fcn.10002040
push 0x68
call fcn.1003f860
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0xf4], 0xb
test esi, esi
je 0x10021be3
sub esp, 0x20
mov dword [esp + 0x48], esp
mov eax, esp
push edi
push eax
call fcn.10015900
push esi
call fcn.10014410
jmp 0x10021be5
xor eax, eax
mov byte [esp + 0xf4], 2
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10021c18
mov edi, dword [esp + 0x24]
lea ebx, [esp + 0x1c]
call fcn.1001e430
lea esi, [esp + 0x30]
call fcn.100226d0
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
jmp 0x10021a70
lea eax, [esp + 0x20]
call fcn.100049f0
lea ecx, [esp + 0x14]
call fcn.100013f0
jmp 0x10021ec1
lea eax, [esp + 0x20]
call fcn.100049f0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10021ec1
cmp dword [esp + 0x18], 0
je 0x10021ec1
push eax
jmp 0x10021ebb
mov byte [esp + 0xf4], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021c7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x10021ec1
cmp dword [esp + 0x18], 0
je 0x10021ec1
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x10021ebb
mov byte [esp + 0xf4], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10021c38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10021c38
push 0x68
call fcn.1003f860
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
mov byte [esp + 0xf4], 0xc
test esi, esi
je 0x10021d07
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
mov ecx, dword [esp + 0x40]
call fcn.1001e250
push esi
call fcn.1001c7f0
mov esi, eax
jmp 0x10021d09
xor esi, esi
mov byte [esp + 0xf4], 2
test esi, esi
je 0x10021e71
mov eax, str.list
lea ecx, [esp + 0x38]
call fcn.1000b630
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0x38]
push edx
push edi
mov byte [esp + 0xfc], 0xd
call fcn.100157e0
mov dword [eax], esi
mov byte [esp + 0xf4], 2
cmp dword [esp + 0x50], 8
jb 0x10021d5c
mov eax, dword [esp + 0x3c]
push eax
call fcn.1003f2c6
add esp, 4
sub esp, 0x20
mov dword [esp + 0x48], esp
mov eax, esp
push edi
push eax
call fcn.10015900
lea ecx, [esp + 0x9c]
push ecx
call fcn.10014410
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x60]
mov byte [esp + 0xf4], 0xe
call fcn.10014e30
lea esi, [esp + 0x24]
mov byte [esp + 0xf4], 0xf
call fcn.1001b240
push 0x14
push str.FavoriteLocal.json
mov edx, esi
push edx
mov byte [esp + 0x100], 0x10
call fcn.10013900
lea ebx, [esp + 0x60]
mov eax, esi
call fcn.1002b8e0
mov bl, al
test bl, bl
sete al
mov byte [ebp + 0x38], al
mov byte [esp + 0xf4], 0xf
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021df3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x78], 8
jb 0x10021e07
mov ecx, dword [esp + 0x64]
push ecx
call fcn.1003f2c6
add esp, 4
xor edx, edx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], dx
mov byte [esp + 0xf4], 2
call fcn.100144e0
mov byte [esp + 0xf4], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021e57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10021e6d
cmp dword [esp + 0x18], 0
je 0x10021e6d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x10021ec3
mov byte [esp + 0xf4], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x10021cb9
lea eax, [edi - 0x10]
mov byte [esp + 0xf4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x10021cb9
test edi, edi
je 0x10021ec1
cmp dword [esp + 0x18], 0
je 0x10021ec1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.1003f2d1
add esp, 0xe4
ret 4