Function at 0x4a6840
Capabilities:
Enumerate gui resources
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e455
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5bf364]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x68], edi
mov esi, dword [ebp + 8]
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [ebp - 0x38], esi
cmp dword [esi + 0x30], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x44], edx
je 0x4a6954
mov esi, edx
test edx, edx
jne 0x4a68b0
mov esi, dword [0x5c7b9c]
test esi, esi
je 0x4a68e4
nop
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x4a68cd
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
jne 0x4a68b0
cmp dword [ebp - 0x44], 0
jne 0x4a68e0
test esi, esi
je 0x4a68e4
push esi
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov esi, eax
test esi, esi
jne 0x4a68f8
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x4a68f8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
mov edx, esi
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x44], edx
cmp dword [esi + 0x34], 0
je 0x4a6939
mov eax, 0x92c80000
mov dword [edi + 0x78], 2
mov dword [edi + 0x7c], 1
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x64], 1
jmp 0x4a6954
mov eax, dword [ebp - 0x30]
and eax, 0x2dffffff
or eax, 0x92000000
mov dword [ebp - 0x30], eax
test eax, 0x40000
jne 0x4a6954
or dword [ebp - 0x64], 1
test edx, edx
je 0x4a695c
test eax, eax
jns 0x4a69b8
test edx, edx
mov ecx, edx
lea edx, [ebp - 0x20]
cmove ecx, dword [0x5c7b9c]
call fcn.00497fe0
cmp dword [edi + 0x88], 1
jne 0x4a6999
mov eax, dword [ebp - 0x18]
sub eax, dword [esi + 0x10]
add eax, dword [ebp - 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [esi + 0x14]
add eax, dword [ebp - 0x1c]
cdq
sub eax, edx
sar eax, 1
jmp 0x4a69a8
mov eax, dword [esi + 8]
add eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x44], 0
mov dword [esi + 0xc], eax
je 0x4a69da
mov eax, dword [ebp - 0x30]
test eax, eax
js 0x4a69da
mov ecx, dword [edi + 0x70]
test ecx, ecx
je 0x4a69cb
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [edi + 0x70], 0
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], 0
jmp 0x4a6a54
mov ecx, dword [esi + 0x2c]
mov edx, dword [edi + 0x70]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], edx
cmp ecx, edx
je 0x4a6a10
mov dword [edi + 0x70], ecx
test ecx, ecx
je 0x4a69f6
call fcn.00436cf0
test edx, edx
je 0x4a6a10
mov eax, dword [edx]
mov ecx, edx
push 0
push 0
call dword [eax + 0x28]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x34]
mov edx, dword [edi + 4]
test edx, edx
je 0x4a6a3b
test ecx, ecx
jne 0x4a6a1f
xor eax, eax
jmp 0x4a6a22
mov eax, dword [ecx + 0x10]
push eax
push edx
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, dword [edi + 0x70]
test ecx, ecx
je 0x4a6a3b
mov eax, dword [ecx]
push 1
push dword [edi + 4]
call dword [eax + 0x28]
mov eax, dword [edi + 0x70]
test eax, eax
jne 0x4a6a47
mov dword [ebp - 0x34], eax
jmp 0x4a6a4d
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], 1
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x60], vtable.CVolObject.0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x60], vtable.CVolMem.0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 4], 1
mov dword [ebp - 0x48], 0x80
mov dword [ebp - 4], 2
cmp dword [esi + 0x30], 0
je 0x4a6b14
push eax
push 0x4a67b0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0x4c]
xor esi, esi
mov eax, ecx
shr eax, 2
test eax, eax
je 0x4a6b11
mov edi, eax
nop dword [eax]
mov eax, dword [ebp - 0x54]
xor edx, edx
test ecx, ecx
push edx
cmove eax, edx
push dword [eax + esi*4]
call dword [sym.imp.USER32.dll_EnableWindow]
inc esi
cmp esi, edi
jge 0x4a6b0e
mov ecx, dword [ebp - 0x4c]
jmp 0x4a6af0
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
mov edx, dword [esi + 0xc]
mov esi, dword [esi + 0x14]
push dword [ebp - 0x3c]
mov eax, dword [ecx + 8]
add esi, edx
mov ecx, dword [ecx + 0x10]
add ecx, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov esi, dword [eax + 0x28]
lea eax, [edi + 0x20]
push eax
push 0x5c1810
call fcn.004a43d0
mov ecx, dword [ebp - 0x30]
mov edx, 0x56000000
test ecx, ecx
movzx eax, ax
cmove ecx, edx
add esp, 8
push eax
push dword [ebp - 0x34]
xor eax, eax
test esi, esi
push dword [ebp - 0x64]
cmovne eax, esi
push ecx
push eax
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x44]
call fcn.004a4280
test eax, eax
je 0x4a6f4d
cmp dword [ebp - 0x40], 0
je 0x4a6b9c
cmp dword [ebp - 0x34], 0
je 0x4a6b9c
mov ecx, dword [edi + 0x70]
push 1
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x28]
push 0x12d12ab
push 0xffffffffffffffeb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [edi + 4], 0
je 0x4a6cae
cmp dword [edi + 0x78], 0
mov dword [ebp - 0x30], 0
je 0x4a6c88
cmp dword [edi + 0x7c], 0
je 0x4a6bd7
mov eax, 0xc80000
jmp 0x4a6c5c
lea ecx, [ebp - 0x34]
call fcn.00450960
mov byte [ebp - 4], 3
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 4]
call fcn.00450bc0
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
je 0x4a6c3a
mov ecx, str.SoulDownloader
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a6c26
test dx, dx
je 0x4a6c22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a6c26
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a6c00
xor ecx, ecx
jmp 0x4a6c2b
sbb ecx, ecx
or ecx, 1
xor eax, eax
mov edx, 0xc00000
test ecx, ecx
cmovne eax, edx
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6c59
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
cmp dword [edi + 0x80], 0
mov ecx, 0x410000
mov edx, 0x400000
cmove ecx, edx
or ecx, eax
cmp dword [edi + 0x84], 0
mov dword [ebp - 0x30], ecx
je 0x4a6c88
mov eax, ecx
or eax, 0x20000
mov dword [ebp - 0x30], eax
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
mov eax, dword [ebp - 0x30]
and ecx, 0xcb0000
cmp ecx, eax
je 0x4a6cae
push 0x37
push eax
push ecx
lea ecx, [edi + 4]
call fcn.004509f0
cmp dword [edi + 0x90], 0
jne 0x4a6ce7
mov eax, dword [0x5c67fc]
test eax, eax
jne 0x4a6cd8
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push 0x498070
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
push 0x64
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [edi + 0x90], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x4a6d18
push dword [edi + 0x90]
push 0
push 0x80
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi + 0x90]
push 1
push 0x80
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xcc]
test eax, eax
je 0x4a6d2a
push eax
mov ecx, edi
call fcn.004a7630
mov eax, dword [ebp - 0x38]
push 1
push dword [eax + 0x3c]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [edi + 0xd0], 0
je 0x4a6d5b
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [edi + 0x8c], 0
jne 0x4a6d8c
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x4a6d88
push 0
push 0xf010
push eax
call dword [sym.imp.USER32.dll_DeleteMenu]
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x88]
test eax, eax
jns 0x4a6d9a
xor eax, eax
jmp 0x4a6da4
mov ecx, 3
cmp eax, ecx
cmovg eax, ecx
mov dword [edi + 0x88], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x4a6dd1
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a6dd1
mov edx, dword [edi + 0x88]
lea ecx, [edi + 4]
xor eax, eax
test edi, edi
cmove ecx, eax
call fcn.004ab9e0
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x30], 0
je 0x4a6f7d
mov eax, dword [0x5c7b9c]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x3c], ecx
test eax, eax
jne 0x4a6df9
mov eax, dword [edi + 4]
mov dword [0x5c7b9c], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x40], eax
mov dword [edi + 0x6c], 1
mov dword [edi + 0x68], 0
test ecx, ecx
je 0x4a6e30
mov edx, dword [ecx]
mov esi, dword [edi + 4]
call dword [edx + 0x44]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a6e7c
cmp dword [edi + 0x6c], 1
jne 0x4a6e7c
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x2c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
jle 0x4a6e7c
lea ecx, [ebp - 0x2c]
call fcn.00495280
test eax, eax
jne 0x4a6e66
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [edi + 0x6c], 1
jne 0x4a6e7c
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call esi
test eax, eax
jg 0x4a6e46
mov eax, dword [edi + 0x68]
xor ecx, ecx
cmp dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], eax
mov dword [edi + 0x6c], 0
mov eax, dword [0x5c7b9c]
cmovne eax, ecx
mov ecx, dword [ebp - 0x4c]
mov dword [0x5c7b9c], eax
xor esi, esi
mov eax, ecx
shr eax, 2
test eax, eax
je 0x4a6ed2
mov edi, eax
nop dword [eax + eax]
mov eax, dword [ebp - 0x54]
xor edx, edx
test ecx, ecx
push 1
cmove eax, edx
push dword [eax + esi*4]
call dword [sym.imp.USER32.dll_EnableWindow]
inc esi
cmp esi, edi
jge 0x4a6ecf
mov ecx, dword [ebp - 0x4c]
jmp 0x4a6eb0
mov edi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x4a6ef8
mov eax, dword [ebp - 0x60]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CMStringArray.virtual_12
jne 0x4a6ef3
mov ecx, 0x5c6708
call fcn.0049a2e0
jmp 0x4a6ef8
lea ecx, [ebp - 0x60]
call eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
test eax, eax
je 0x4a6f1b
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi + 4]
test eax, eax
je 0x4a6f29
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x4a6f42
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a6f42
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x38], ecx
jmp 0x4a6f50
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x30], 0
je 0x4a6f7d
mov edi, dword [ebp - 0x4c]
xor esi, esi
shr edi, 2
test edi, edi
je 0x4a6f7d
mov eax, dword [ebp - 0x54]
xor ecx, ecx
cmp dword [ebp - 0x4c], ecx
push 1
cmove eax, ecx
push dword [eax + esi*4]
call dword [sym.imp.USER32.dll_EnableWindow]
inc esi
cmp esi, edi
jl 0x4a6f62
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x60], vtable.CVolMem.0
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4a6faa
push eax
mov ecx, 0x5c6708
call fcn.0049a2e0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov dword [ebp - 0x60], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ec8c
mov esp, ebp
pop ebp
ret 4