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

Disassembly:
sub esp, 0x880
push ebx
push esi
mov esi, dword [esp + 0x88c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x1002259f
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x286]
mov word [esp + 0x284], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x284]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea ecx, [esp + 0x284]
push str.SysListView32
push ecx
call fcn.100ea1af
add esp, 8
test eax, eax
jne 0x1002259f
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 0x1002259f
push ebx
push str.SysHeader32
push ebx
push esi
call dword [sym.imp.USER32.dll_FindWindowExW]
cmp eax, ebx
je 0x1002259f
push ebx
push ebx
push 0x1200
push eax
call edi
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x1002259f
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 0x10022249
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x1002225c
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 0x1002259f
mov ecx, 0x83
xor eax, eax
lea edi, [esp + 0x78]
mov dword [esp + 0x74], ebx
rep stosd dword es:[edi], eax
mov ecx, 0xc
lea edi, [esp + 0x44]
mov dword [esp + 0x40], ebx
mov word [esp + 0x48c], bx
rep stosd dword es:[edi], eax
mov ecx, 0xff
lea edi, [esp + 0x48e]
rep stosd dword es:[edi], eax
push ebp
push 4
push 0x1000
push 0x34
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 0x1002257d
cmp edi, ebx
je 0x1002257d
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 0x10022579
mov ebx, dword [esp + 0x898]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x10022566
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x48]
push 0x34
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 + 0x894]
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 + 0x494]
push 0x400
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10022551
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x490]
lea eax, [esp + 0x80]
push edx
push eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], ecx
call fcn.100e9a63
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 0x100223e2
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x100223d7
push eax
mov dword [esp + 0x20], ecx
call fcn.10197127
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x1002252b
mov edx, dword [ebx + 4]
cmp edx, edi
jne 0x10022420
mov edi, ebp
shl edi, 5
add edi, ebp
shl edi, 4
push edi
call fcn.101970fe
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 0x1002252b
mov edi, dword [ebx + 0xc]
cmp ebp, edi
jg 0x1002246d
cmp ecx, ebp
jge 0x1002245d
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 0x1002252b
jle 0x10022465
sub ecx, ebp
mov dword [esp + 0x1c], ecx
mov dword [ebx + 8], ebp
jmp 0x1002252b
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x10022497
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x1002248b
mov eax, 4
jmp 0x10022497
cmp eax, 0x400
jle 0x10022497
mov eax, 0x400
add eax, edi
cmp ebp, eax
jge 0x100224a3
mov dword [esp + 0x20], eax
jmp 0x100224a9
mov dword [esp + 0x20], ebp
mov eax, ebp
mov ecx, eax
shl ecx, 5
add ecx, eax
shl ecx, 4
push ecx
call fcn.101970fe
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.10197127
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 + 0x78]
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 0x10022325
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
mov dword [esp + 0x34], edi
jl 0x10022311
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, 0x880
ret