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

Disassembly:
sub esp, 0xaa4
mov eax, dword [0x10037d20]
xor eax, esp
mov dword [esp + 0xaa0], eax
mov edx, dword [esp + 0xaa8]
mov ecx, dword [esp + 0xab4]
mov eax, dword [esp + 0xaac]
push esi
mov esi, dword [esp + 0xac0]
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [esp + 0xab8]
cmp esi, 5
ja case.default.0x1002081a
jmp dword [esi*4 + 0x10020d10]
push ebp
push eax
push edx
call fcn.1001ca30
mov ebp, eax
mov dword [esp + 0x34], ebp
test ebp, ebp
jne 0x1002083d
mov eax, 0xfffffae2
jmp 0x10020ac2
mov eax, dword [ebp + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x3c], eax
mov ebx, dword [eax + 4]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x20], ebx
push dword [ebx + 0xc]
call fcn.10012e00
test esi, esi
je 0x10020adc
cmp esi, 4
je 0x10020adc
cmp esi, 5
je 0x10020adc
push dword [esp + 0x24]
call fcn.1001cbb0
push 1
push eax
mov dword [esp + 0x28], eax
call fcn.1001c500
mov ebp, eax
test ebp, ebp
je 0x10020a03
mov ebx, dword [esp + 0x10]
mov dword [ebp + 0x1c], esi
xor esi, esi
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x20], 0
mov ebx, dword [ebx + 0x28]
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
test ebx, ebx
je 0x100209be
jmp 0x100208d0
push 0x120
call fcn.10021210
mov edi, eax
test edi, edi
je 0x100209f9
mov eax, dword [esp + 0x2c]
mov dword [edi + 4], eax
inc eax
mov ecx, dword [ebx + 0xc]
mov dword [edi + 8], ecx
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
mov dword [edi + 0xc], ecx
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x38]
cmp byte [eax + 0x1c], 1
mov eax, dword [ebx + 8]
jne 0x10020918
and eax, 0xffffffdf
push 0x200
mov dword [edi + 0x18], eax
lea esi, [ebx + 0x2a]
mov eax, dword [esp + 0x20]
push esi
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.10011f30
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0xc]
call fcn.10012e00
push dword [esp + 0x14]
lea eax, [edi + 0x1c]
push 0x41
push eax
push esi
call fcn.1000d860
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add esi, 0x68
push 0x100
push esi
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.10011f30
push dword [esp + 0x14]
lea eax, [edi + 0x9e]
push 0x41
push eax
push esi
call fcn.1000d860
cmp dword [ebp + 0x28], 0
jne 0x10020990
mov dword [ebp + 0x28], edi
jmp 0x10020996
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov esi, dword [esp + 0x30]
mov ebx, dword [ebx]
inc esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], esi
test ebx, ebx
jne 0x100208d0
test esi, esi
jle 0x100209be
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x20], esi
mov byte [ebp + 0x24], 2
mov dword [ebp + 0x2c], eax
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
call fcn.1001cbf0
push 0x10037b70
push dword [ebp + 0xc]
lea ecx, [esp + 0x3c]
mov eax, dword [eax + 0x1c]
push ecx
push dword [esp + 0x30]
mov eax, dword [eax + 0x24]
call eax
mov edi, eax
test edi, edi
je 0x10020a0d
push ebp
push dword [esp + 0x24]
call fcn.1001c9d0
mov eax, edi
jmp 0x10020ac1
push ebp
push dword [esp + 0x24]
call fcn.1001c9d0
mov eax, 0xfffffc0d
jmp 0x10020ac1
mov ecx, dword [esp + 0x3c]
mov edx, 0x38
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp + 0x14], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xac8]
cmp ecx, edx
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x5c], eax
mov eax, ecx
push ecx
push dword [esp + 0x1c]
cmova eax, edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 1
mov dword [esp + 0x74], 2
mov dword [esp + 0x78], 3
mov dword [esp + 0x7c], 4
mov dword [esp + 0x80], 5
mov dword [esp + 0x84], 6
mov dword [esp + 0x88], 7
mov dword [esp + 0x8c], 8
mov dword [esp + 0x90], 9
mov dword [esp + 0x94], 1
push edx
push eax
call fcn.1000cd30
pop ebx
pop ebp
mov ecx, dword [esp + 0xaa8]
pop edi
pop esi
xor ecx, esp
call fcn.10026ae6
add esp, 0xaa4
ret 0x18
test edi, edi
jne 0x10020ae7
mov eax, 0xfffffc15
jmp 0x10020ac1
push 0x200
lea eax, [esp + 0x6b4]
push eax
push edi
push dword [ebx + 0x14]
push dword [ebx + 0x10]
call fcn.10046ebd
push dword [esp + 0x14]
lea eax, [esp + 0x6b4]
push 0x200
push eax
push eax
call fcn.10015a10
test eax, eax
jne 0x10020b2f
push 1
push edi
push 0xffffdffa
call fcn.1000d0e0
mov eax, 0xfffffc16
jmp 0x10020ac1
lea eax, [esp + 0x6b0]
push eax
push dword [esp + 0x14]
call fcn.1001cc30
mov ecx, eax
test ecx, ecx
jne 0x10020b50
mov eax, 0xfffffa1d
jmp 0x10020ac1
test esi, esi
jne 0x10020ba6
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x4c], eax
cmp byte [ebp + 0x1c], 1
mov eax, dword [ecx + 8]
jne 0x10020b7c
and eax, 0xffffffdf
mov ecx, dword [esp + 0xac8]
mov edx, 0x18
mov dword [esp + 0x54], eax
cmp ecx, edx
push ecx
push dword [esp + 0x1c]
mov eax, ecx
cmova eax, edx
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push edx
jmp 0x10020abb
cmp esi, 4
jne 0x10020c86
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x29c], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x2a0], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x2a4], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x2a8], eax
cmp byte [ebp + 0x1c], 1
mov eax, dword [ecx + 8]
jne 0x10020be3
and eax, 0xffffffdf
mov esi, dword [esp + 0x10]
push 0x100
add esi, 0x68
mov dword [esp + 0x2b0], eax
push esi
push esi
push dword [ebx + 0x14]
push dword [ebx + 0x10]
call fcn.10011f30
push dword [esp + 0x14]
lea eax, [esp + 0x2b4]
push 0x100
push eax
push esi
call fcn.1000d860
lea ecx, [esp + 0x4b0]
mov edx, 0x100
mov eax, ecx
sub edi, eax
lea ebx, [ebx]
lea eax, [edx + 0x7ffffefe]
test eax, eax
je 0x10020c4e
movzx eax, word [edi + ecx]
test ax, ax
je 0x10020c4e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10020c30
jmp 0x10020c52
test edx, edx
jne 0x10020c55
sub ecx, 2
xor eax, eax
mov edx, 0x418
mov word [ecx], ax
mov ecx, dword [esp + 0xac8]
cmp ecx, edx
push ecx
push dword [esp + 0x1c]
mov eax, ecx
cmova eax, edx
mov dword [esp + 0x2a0], eax
lea eax, [esp + 0x2a0]
push edx
jmp 0x10020abb
push 1
xor eax, eax
mov dword [esp + 0x98], 0
mov word [esp + 0x9c], ax
lea edx, [esp + 0x9c]
push dword [ecx + 0x10]
mov eax, dword [esp + 0x18]
push 0x200
push edx
push dword [ecx + 0x20]
mov eax, dword [eax + 4]
push dword [eax + 0xc]
call fcn.10015420
test eax, eax
je 0x10020ccd
xor eax, eax
mov word [esp + 0x98], ax
mov ecx, dword [esp + 0xac8]
mov edx, 0x208
cmp ecx, edx
mov eax, ecx
push ecx
push dword [esp + 0x1c]
cmova eax, edx
mov dword [esp + 0x98], eax
lea eax, [esp + 0x98]
push edx
jmp 0x10020abb
mov eax, 0xfffffc17
jmp 0x10020ac3
mov eax, 0xfffffc15
jmp 0x10020ac3