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

Disassembly:
sub esp, 0x874
push ebx
push esi
mov esi, dword [esp + 0x880]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x10021a36
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x27a]
mov word [esp + 0x278], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x278]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea ecx, [esp + 0x278]
push str.SysListView32
push ecx
call fcn.100ca4ff
add esp, 8
test eax, eax
jne 0x10021a36
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x1004
push esi
call edi
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x10021a36
push ebx
push str.SysHeader32
push ebx
push esi
call dword [sym.imp.USER32.dll_FindWindowExW]
cmp eax, ebx
je 0x10021a36
push ebx
push ebx
push 0x1200
push eax
call edi
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x10021a36
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jne 0x100216e9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x100216fc
push ecx
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x10], eax
mov esi, eax
cmp esi, ebx
je 0x10021a36
mov ecx, 0x83
xor eax, eax
lea edi, [esp + 0x6c]
mov dword [esp + 0x68], ebx
rep stosd dword es:[edi], eax
mov ecx, 9
lea edi, [esp + 0x44]
mov dword [esp + 0x40], ebx
mov word [esp + 0x480], bx
rep stosd dword es:[edi], eax
mov ecx, 0xff
lea edi, [esp + 0x482]
rep stosd dword es:[edi], eax
push ebp
push 4
push 0x1000
push 0x28
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push ebx
push esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], ebx
call edi
push 4
push 0x1000
push 0x400
mov ebp, eax
push ebx
push esi
mov dword [esp + 0x4c], ebp
call edi
mov edi, eax
cmp ebp, ebx
mov dword [esp + 0x18], edi
je 0x10021a14
cmp edi, ebx
je 0x10021a14
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], edi
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x44], 1
mov dword [esp + 0x5c], 0x400
mov dword [esp + 0x34], edi
jle 0x10021a10
mov ebx, dword [esp + 0x88c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x100219fd
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x48]
push 0x28
push edx
push ebp
push esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 0x888]
push ebp
push edi
push 0x1073
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x488]
push 0x400
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100219e8
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x484]
lea eax, [esp + 0x74]
push edx
push eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ecx
call fcn.100c9d7f
mov ecx, dword [ebx + 8]
xor edi, edi
mov esi, ecx
add esp, 8
mov dword [esp + 0x1c], esi
lea ebp, [esi + 1]
cmp ebp, edi
jne 0x10021879
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x1002186e
push eax
mov dword [esp + 0x20], ecx
call fcn.10173959
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x100219c2
mov edx, dword [ebx + 4]
cmp edx, edi
jne 0x100218b7
mov edi, ebp
shl edi, 5
add edi, ebp
shl edi, 4
push edi
call fcn.10173930
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x100219c2
mov edi, dword [ebx + 0xc]
cmp ebp, edi
jg 0x10021904
cmp ecx, ebp
jge 0x100218f4
mov edi, ecx
mov eax, ebp
shl edi, 5
sub eax, ecx
add edi, ecx
mov ecx, eax
shl ecx, 5
add ecx, eax
xor eax, eax
shl edi, 4
shl ecx, 4
add edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 8], ebp
jmp 0x100219c2
jle 0x100218fc
sub ecx, ebp
mov dword [esp + 0x1c], ecx
mov dword [ebx + 8], ebp
jmp 0x100219c2
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x1002192e
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x10021922
mov eax, 4
jmp 0x1002192e
cmp eax, 0x400
jle 0x1002192e
mov eax, 0x400
add eax, edi
cmp ebp, eax
jge 0x1002193a
mov dword [esp + 0x20], eax
jmp 0x10021940
mov dword [esp + 0x20], ebp
mov eax, ebp
mov ecx, eax
shl ecx, 5
add ecx, eax
shl ecx, 4
push ecx
call fcn.10173930
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ecx, edx
mov edi, eax
shl ecx, 5
add ecx, edx
mov dword [esp + 0x44], eax
shl ecx, 4
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
mov edi, ecx
sub edx, ecx
shl edi, 5
add edi, ecx
mov ecx, edx
shl ecx, 5
add ecx, edx
shl ecx, 4
shl edi, 4
mov edx, ecx
add edi, eax
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
push eax
call fcn.10173959
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
add esp, 8
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], edx
mov eax, dword [ebx + 4]
mov edi, esi
shl edi, 5
add edi, esi
mov ebp, dword [esp + 0x38]
shl edi, 4
add edi, eax
mov ecx, 0x84
lea esi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x100217c5
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
mov dword [esp + 0x34], edi
jl 0x100217b1
xor ebx, ebx
mov edi, dword [esp + 0x18]
push 0x8000
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call ebp
push 0x8000
push ebx
push edi
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x874
ret