Function at 0x486890
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4eb936
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
push 0x51d5ec
mov esi, ecx
mov dword [esp + 0x88], 0x51d5ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x2c]
mov edx, dword [esp + 0xec]
mov ebx, dword [esi + 0x58]
mov dword [esp + 0x24], ecx
lea ecx, [esi + 0x4c]
push edx
mov dword [esp + 0xe8], 0
mov dword [esp + 0x38], ebx
call fcn.00456630
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
add eax, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x20]
add eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x14]
cmp word [eax], 0
mov eax, dword [esp + 0xf0]
setne byte [esp + 0x1b]
mov ebp, eax
and ebp, 0x10000
cmp ebx, 0x12345002
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], ebp
jne 0x486943
mov ebp, 0x10000
mov dword [esp + 0x38], ebp
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
and eax, 0xfffe0000
mov dword [esp + 0x54], eax
xor eax, eax
push 0x30
mov dword [esp + 0x74], ecx
mov dword [esi + 0x50], eax
mov dword [esp + 0x70], edx
mov dword [esi + 0x54], eax
mov dword [esp + 0x18], eax
call fcn.004cc845
mov edi, eax
add esp, 4
test edi, edi
je 0x486988
lea ecx, [edi + 8]
call fcn.00449780
xor eax, eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x2c], eax
jmp 0x48698a
xor edi, edi
cmp ebx, 0xfffff000
mov dword [esp + 0x3c], edi
mov dword [esp + 0x4c], edi
je 0x4869a4
cmp ebx, 1
mov byte [esp + 0x11], 0
jne 0x4869a9
mov byte [esp + 0x11], 1
cmp ebx, 0xfffff000
je 0x4869ba
test ebx, ebx
mov byte [esp + 0x13], 0
jne 0x4869bf
mov byte [esp + 0x13], 1
cmp ebx, 0xfffff000
jne 0x4869e9
test ebp, ebp
jne 0x4869e9
mov eax, dword [esp + 0xec]
push ebp
push eax
mov ecx, edi
call fcn.004671a0
test eax, eax
jle 0x4869e9
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], 0x12345003
mov al, byte [esp + 0x13]
test al, al
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
je 0x486a1e
test ebp, ebp
jne 0x486a1e
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x486a1e
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0xec]
push 0x10
push ecx
push edx
push ebp
push eax
push ebp
mov dword [esi + 0x58], ebp
call edi
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x54]
test eax, eax
je 0x486a2d
mov dword [esp + 0x14], 0xe
mov cl, byte [esp + 0x11]
test cl, cl
je 0x486a6a
test ebp, ebp
jne 0x486a6a
test eax, eax
jne 0x486a6a
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0xec]
push 0x10
push ecx
push edx
push 1
push eax
push ebp
mov dword [esi + 0x58], 1
call edi
test eax, eax
mov dword [esi + 0x54], eax
je 0x486a6a
mov dword [esp + 0x14], 3
cmp ebx, 0xfffff000
je 0x486a77
cmp ebx, 2
jne 0x486ad9
test ebp, ebp
jne 0x486ad9
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x486ad9
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0xec]
push 0x10
push ecx
push edx
push 2
push eax
push ebp
mov dword [esi + 0x58], 2
call edi
mov edi, eax
test edi, edi
je 0x486ac3
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
push 4
push ecx
push edx
push 1
push edi
call dword [sym.imp.USER32.dll_CopyImage]
push edi
mov dword [esi + 0x54], eax
call dword [sym.imp.USER32.dll_DestroyCursor]
mov eax, dword [esi + 0x54]
test eax, eax
je 0x486ad9
mov dword [esp + 0x14], 3
mov dword [esi + 0x58], 1
mov al, byte [esp + 0x11]
xor ecx, ecx
test al, al
mov byte [esp + 0x12], 0
mov dword [esp + 0x28], ecx
jne 0x486af8
mov al, byte [esp + 0x13]
test al, al
je 0x486eef
cmp dword [esi + 0x54], ecx
jne 0x486eef
cmp ebp, ecx
jne 0x486eef
mov eax, dword [esp + 0xec]
cmp word [eax], 0x23
mov edi, dword [esi + 0x4c]
mov dword [esp + 0x40], ecx
je 0x486b7e
cmp edi, ecx
mov dword [esp + 0x40], 1
je 0x486b43
mov ax, word [edi]
cmp ax, cx
je 0x486b43
cmp ax, 0x23
je 0x486b43
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x486b31
mov bp, word [edi]
test bp, bp
mov word [edi], 0
je 0x486b55
mov byte [esp + 0x12], 1
mov eax, dword [esi + 0x4c]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [esi + 0x50], ebx
mov dword [esp + 0x20], ebx
mov word [edi], bp
je 0x486eef
or byte [esp + 0x12], 2
jmp 0x486b91
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x12], 3
xor eax, eax
mov dword [esp + 0x2c], eax
cmp word [edi], ax
mov byte [esp + 0xe4], 1
mov dword [esp + 0x30], 1
mov dword [esp + 0x1c], edi
jne 0x486c85
mov ebp, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x74], ecx
mov cl, byte [esp + 0x11]
test cl, cl
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
je 0x486bff
lea edx, [esp + 0x74]
push edx
push 0x45a0f0
push 0xe
push ebx
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x486bff
mov ebx, dword [esp + 0x38]
mov edi, eax
mov dword [esp + 0x30], eax
jmp 0x486de5
mov cl, byte [esp + 0x13]
test cl, cl
je 0x486c1a
lea eax, [esp + 0x74]
push eax
push 0x45a0f0
push 2
push ebx
call ebp
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x486c95
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x486c55
mov al, byte [esp + 0x13]
test al, al
je 0x486c55
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edx, dword [esp + 0x30]
push 0
push eax
mov eax, dword [esp + 0x28]
push ecx
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x54]
test eax, eax
je 0x486d44
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], 0xe
mov dword [esi + 0x58], 0
mov byte [esp + 0xe4], 0
call fcn.00443880
jmp 0x486eef
lea ecx, [edi + 2]
push ecx
call fcn.0044a460
add esp, 4
mov dword [esp + 0x30], eax
xor eax, eax
mov ax, word [edi]
test ax, ax
mov dword [esp + 0x44], 0
mov ebx, 3
mov ebp, edi
je 0x486cc7
mov edi, edi
cmp ax, 0x7c
je 0x486cc7
mov ax, word [ebp + 2]
add ebp, 2
test ax, ax
jne 0x486cb0
jmp 0x486ded
cmp word [ebp], 0
je 0x486ded
add ebp, 2
cmp word [ebp], 0
je 0x486ded
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push ebp
push str.Bitmap
call ebx
test eax, eax
jne 0x486cfc
mov ebx, 2
jmp 0x486c2e
push ebp
push str.ICON
call ebx
test eax, eax
jne 0x486d22
mov dword [esp + 0x44], 1
mov ebx, 3
mov dword [esp + 0x28], 4
jmp 0x486ded
push ebp
push str.ICON_GROUP
call ebx
test eax, eax
je 0x486dd8
push ebp
push str.ICONGROUP
call ebx
test eax, eax
je 0x486dd8
mov ebx, ebp
push 2
mov dword [esp + 0x64], 0
call fcn.00449130
add esp, 4
test eax, eax
mov dword [esp + 0x60], eax
je 0x486d61
mov byte [eax], 0
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x64]
push ecx
push ebx
push edx
push eax
mov byte [esp + 0xf8], 2
call fcn.00423fea
mov edi, eax
mov eax, dword [esp + 0x78]
add esp, 0x14
cmp ebx, 2
mov ebp, eax
je 0x486db7
mov cl, byte [esp + 0x11]
test cl, cl
je 0x486db7
test edi, edi
je 0x486db7
push 0x30000
push 1
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResource]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
je 0x486e71
mov dword [esp + 0x14], 3
mov dword [esi + 0x58], 1
jmp 0x486e94
mov dword [esp + 0x44], 1
mov ebx, 0xe
mov dword [esp + 0x28], 2
mov al, byte [esp + 0x11]
test al, al
je 0x486e17
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esi + 0x50]
push eax
mov eax, dword [esi + 0x2c]
push eax
push ecx
push edi
push edx
call fcn.0045a140
add esp, 0x18
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x486e26
mov dword [esp + 0x40], 0
mov eax, dword [esi + 0x54]
test eax, eax
je 0x486e52
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], 3
mov dword [esi + 0x58], 1
mov byte [esp + 0xe4], 0
call fcn.00443880
jmp 0x486eef
mov eax, dword [esp + 0x28]
test eax, eax
je 0x486c26
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 0
call fcn.00443880
jmp 0x486eef
cmp edi, ebx
je 0x486e94
mov edi, dword [esp + 0x3c]
push ebp
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call fcn.004671a0
test eax, eax
jle 0x486e94
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], 0x12345003
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x486eb1
cmp dword [esp + 0x40], ebx
je 0x486eb1
cmp dword [esp + 0x20], ebx
je 0x486eb1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x50], ebx
mov eax, dword [esp + 0x60]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x486ecd
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push ebx
push edx
call edi
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [esp + 0x60], ebx
mov byte [esp + 0xe4], 0
je 0x486eef
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call edi
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x486efd
mov dword [esi + 0x58], 0xffffffff
mov eax, dword [esp + 0x34]
xor ebp, ebp
cmp eax, 0xfffff000
je 0x486f15
cmp eax, 0x12345001
jne 0x4870a2
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4870a2
cmp dword [esi + 0x58], 0xffffffff
jne 0x4870a2
mov eax, dword [esi + 0x4c]
push eax
call fcn.004b0cb0
add esp, 4
test eax, eax
je 0x4870a2
xor edi, edi
lea ecx, [esp + 0x88]
mov dword [esp + 0x1c], edi
call fcn.004a3850
lea eax, [esi + 0x34]
mov dword [esp + 0xd0], eax
mov eax, dword [0x51d2cc]
cmp eax, edi
mov dword [esp + 0x88], 0x4f90b8
mov dword [esp + 0xd4], edi
mov byte [esp + 0xd8], 0
jne 0x486f86
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x486f8b
mov ebx, dword [eax + 0x18]
jmp 0x486f8d
xor ebx, ebx
push 0xffff
push ebx
sub esp, 0x10
mov ebx, esp
xor eax, eax
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebx + 4], ecx
mov edx, 1
mov edi, edx
mov dword [ebx + 8], edx
push 0x48000000
lea ecx, [esp + 0xa4]
mov dword [ebx + 0xc], edi
call fcn.004544d0
test eax, eax
je 0x486fd7
mov eax, dword [esi + 0x4c]
push eax
lea ecx, [esp + 0x8c]
call fcn.004482f0
mov edi, eax
jmp 0x486fdb
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x88]
call fcn.004a7f30
test edi, edi
je 0x4870a2
push 0x54
call fcn.004cc845
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xe4], 3
je 0x487018
lea ecx, [esi + 0x34]
push ecx
mov ecx, eax
call fcn.004482c0
mov edi, eax
jmp 0x48701a
xor edi, edi
mov ecx, dword [esi + 0x14]
mov ebx, dword [esp + 0x24]
mov word [ecx], 0
mov edx, dword [ebx + 0x18]
mov ecx, dword [esp + 0x50]
push 0xffff
push edx
mov edx, dword [esp + 0x50]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x6c]
or eax, 0x48000007
push eax
mov ecx, edi
mov byte [esp + 0x100], 0
call fcn.004544d0
mov eax, dword [esi + 0x4c]
push eax
mov ecx, edi
call fcn.004482f0
mov dword [esi + 0x58], 0x12345001
mov dword [esi + 0x1c], edi
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x54], ecx
mov ecx, ebx
call fcn.004a38a0
test eax, eax
je 0x4870a2
cmp eax, 0xffffffff
je 0x4870a2
mov edx, dword [edi + 0x18]
push 0
push eax
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov bl, byte [esp + 0x1b]
test bl, bl
mov edi, dword [esp + 0x14]
jne 0x4870b6
or edi, 0x8000000
jmp 0x4870bb
mov ebp, 0x100
mov eax, dword [esi + 0x48]
mov edx, 1
cmp eax, edx
jl 0x4870cd
or edi, 0x800000
mov eax, dword [esi + 0x58]
test eax, eax
jge 0x4870df
mov al, byte [esp + 0x12]
test al, al
je 0x4870df
mov dword [esi + 0x58], edx
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x487103
mov eax, dword [esi + 0x54]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x18]
push 0x172
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x487342
cmp ecx, edx
jne 0x48710f
mov eax, dword [esi + 0x54]
push eax
push 1
jmp 0x4870ec
mov eax, dword [esi + 0x58]
test eax, eax
jge 0x48720e
cmp ecx, 0xfffff000
je 0x487133
cmp ecx, 0x12345002
jne 0x487342
jmp 0x4871bf
push 0x88
call fcn.004cc845
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xe4], 4
je 0x48715d
lea ecx, [esi + 0x34]
push ecx
mov ecx, eax
call fcn.004b0e7e
jmp 0x48715f
xor eax, eax
mov edx, dword [esp + 0xf4]
mov ecx, dword [esp + 0x24]
push edx
mov dword [esi + 0x1c], eax
mov byte [eax + 0x49], bl
mov ebx, dword [esp + 0x58]
mov dword [esi + 0x58], 0x12345002
mov edx, dword [ecx + 0x18]
push edx
mov edx, dword [esp + 0x58]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x60]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x70]
or ebp, edi
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x74]
or ebp, ebx
or ebp, 0x40000000
push ebp
mov dword [ecx + 0xc], edx
push 0x4efd50
mov ecx, eax
mov byte [esp + 0x104], 0
call fcn.004b0fbe
mov eax, dword [esi + 0x4c]
lea edi, [esi + 0x4c]
push eax
call fcn.004b0cb0
add esp, 4
test eax, eax
je 0x4871ff
mov eax, dword [edi]
push eax
call fcn.00454840
add esp, 4
test al, al
je 0x4871ff
mov ecx, dword [esi + 0x1c]
push edi
add ecx, 0x80
call fcn.00456690
mov eax, dword [esi + 0x1c]
mov byte [eax + 0x84], 0
jmp 0x487342
mov ecx, dword [esi + 0x1c]
mov byte [ecx + 0x84], 1
jmp 0x487342
cmp eax, 0x12345003
jne 0x487258
push 0x88
call fcn.004cc845
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xe4], 5
je 0x48723f
lea edx, [esi + 0x34]
push edx
mov ecx, eax
call fcn.004478d0
jmp 0x487241
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x1c], eax
mov dword [eax + 0x80], ecx
mov dword [esp + 0x4c], 0
jmp 0x48729f
test eax, eax
je 0x487264
cmp eax, edx
jne 0x487342
cmp ecx, 0xfffff000
jne 0x4872f9
push 0x80
call fcn.004cc845
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xe4], 6
je 0x48729a
lea edx, [esi + 0x34]
push edx
mov ecx, eax
call fcn.004b04ae
jmp 0x48729c
xor eax, eax
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0x24]
push ecx
mov byte [eax + 0x49], bl
mov eax, dword [edx + 0x18]
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x50]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x70]
or ebp, edi
mov edi, dword [esp + 0x6c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x74]
or ebp, edi
mov dword [ecx + 8], edx
or ebp, 0x40000000
push ebp
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x1c]
push 0x4efd50
mov byte [esp + 0x104], 0
call fcn.004b0616
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x487310
mov eax, dword [esi + 0x54]
test eax, eax
je 0x487310
mov ecx, dword [esi + 0x1c]
push eax
call fcn.00443a50
cmp dword [esi + 0x58], 1
jne 0x487326
mov eax, dword [esi + 0x54]
test eax, eax
je 0x487326
mov ecx, dword [esi + 0x1c]
push eax
call fcn.00443a70
cmp dword [esi + 0x58], 0x12345003
jne 0x487342
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x18]
push 0
push 1
push 0x64
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x48735c
mov edi, eax
mov ecx, edi
call fcn.00467120
push edi
call fcn.004cc875
add esp, 4
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x487381
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x487375
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x487381
cmp ecx, 1
jne 0x487381
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x487390
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x34]
cmp eax, 0xfffff000
je 0x4873a7
mov ecx, dword [esi + 0x58]
test ecx, ecx
jg 0x4873e5
mov dword [esi + 0x58], eax
jmp 0x4873e5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4873ba
mov eax, dword [eax + 0x18]
push 1
push eax
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4873e5
mov ecx, dword [esp + 0x24]
call fcn.004a38a0
test eax, eax
je 0x4873e5
cmp eax, 0xffffffff
je 0x4873e5
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x18]
push 0
push eax
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd8
ret 0xc