Function at 0x10018160
Capabilities:
Get number of processors
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x1007aff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x30], ebp
call fcn.10012a00
mov dword [esp + 0x44], 0x1008247c
mov edx, dword [esp + 0x10c]
xor esi, esi
push esi
push ecx
mov eax, SysReAllocStringLen
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, esp
push esi
push 0x4600184c
push esi
push ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [eax], esi
mov eax, esp
lea ecx, [esp + 0x4c]
mov dword [eax], ecx
push edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x11c], esi
call fcn.10012be0
test byte [esp + 0xc8], 2
movzx eax, word [esp + 0x108]
jne 0x1001820c
cmp eax, esi
je 0x1001820c
push eax
mov eax, dword [0x10098994]
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
cmp eax, esi
je 0x1001820c
push eax
lea ecx, [esp + 0x48]
call fcn.1000f800
mov ecx, dword [esp + 0x88]
push esi
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [esp + 0x14], eax
push 0x400
push 0xa
push 0x19
push 0x10
push 0x10
mov byte [esp + 0x114], 1
call fcn.10010a70
push 0xffffffffffffffff
push eax
mov dword [ebp], eax
call fcn.10011010
mov edx, dword [0x10098990]
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0xea
push edx
call esi
mov edi, eax
mov eax, dword [ebp]
push edi
push 0xffffffffffffffff
push eax
call fcn.10010db0
push edi
mov edi, dword [sym.imp.USER32.dll_DestroyIcon]
call edi
mov ecx, dword [0x10098990]
push 0xec
push ecx
call esi
mov edx, dword [ebp]
mov ebx, eax
push ebx
push 0xffffffffffffffff
push edx
call fcn.10010db0
push ebx
call edi
mov eax, dword [0x10098990]
push 0xeb
push eax
call esi
mov ecx, dword [ebp]
mov esi, eax
push esi
push 0xffffffffffffffff
push ecx
call fcn.10010db0
push esi
call edi
push 0
push 0
push 0
mov eax, 0xed
push 0
push eax
lea ecx, [esp + 0x58]
call fcn.10011760
mov edx, dword [ebp]
push str.DownloadToolbarSearchItem1
lea ecx, [esp + 0x14]
mov dword [esp + 0x90], edx
call fcn.10005e50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
push SysReAllocStringLen
mov byte [esp + 0x10c], 2
call fcn.1004a280
add esp, 0xc
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x100], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10018328
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x10018334
mov dword [esp + 0x20], 0xa22d
push str.DownloadToolbarSearchItem2
lea ecx, [esp + 0x14]
call fcn.10005e50
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
push SysReAllocStringLen
mov byte [esp + 0x10c], 3
call fcn.1004a280
mov ebx, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
mov byte [esp + 0x100], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001838f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x1001839b
mov dword [esp + 0x24], 0xa22c
push str.DownloadToolbarSearchItem3
lea ecx, [esp + 0x14]
call fcn.10005e50
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push ecx
push SysReAllocStringLen
mov byte [esp + 0x10c], 4
call fcn.1004a280
mov ebx, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
mov byte [esp + 0x100], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100183f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x10018402
mov dword [esp + 0x28], 0xa22b
mov ebx, 2
mov dword [esp + 0x1c], ebx
jmp 0x10018410
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [eax + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x100], 5
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov esi, dword [esp + ebx*4 + 0x20]
push 0
push esi
mov byte [esp + 0x108], 6
call fcn.10001450
add esp, 8
test eax, eax
je 0x1001846b
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.10004800
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
test eax, eax
jg 0x10018477
or eax, 0xffffffff
jmp 0x1001848d
push 0x2c
push ebp
call fcn.1006a2c9
add esp, 8
test eax, eax
jne 0x1001848b
or eax, 0xffffffff
jmp 0x1001848d
sub eax, ebp
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
call fcn.10008ae0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
mov byte [esp + 0x100], 7
je 0x100184fe
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x100184ec
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x100184ec
push eax
call fcn.10002a40
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x100184df
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea edi, [ebx + 0x10]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
jmp 0x100184fe
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.100048d0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x100], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018524
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x1001856b
mov eax, dword [esp + ebx*4 + 0x20]
cmp eax, 0xa22b
je 0x10018554
cmp eax, 0xa22c
je 0x10018554
cmp eax, 0xa22d
je 0x10018554
push edi
push eax
mov eax, dword [esp + 0x1c]
push 0x400
push 0
push eax
jmp 0x10018565
mov ecx, dword [esp + 0x14]
push edi
add eax, 0x64
push eax
push 0x400
push 0
push ecx
call dword [sym.imp.USER32.dll_InsertMenuA]
lea eax, [edi - 0x10]
mov byte [esp + 0x100], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001858d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x100], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100185af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
dec ebx
mov dword [esp + 0x1c], ebx
jns 0x10018410
mov edi, dword [esp + 0x14]
push 0x408
push 0
push edi
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [esp + 0x118]
cmp eax, 1
jne 0x1001863e
push edi
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
jne 0x100185ea
mov esi, eax
jmp 0x10018681
mov dl, byte [esp + 0xc8]
mov al, byte [esp + 0xc9]
or dl, 0x10
test al, 2
mov byte [esp + 0xc8], dl
je 0x10018619
mov cl, al
shr cl, 2
xor cl, al
and cl, 4
xor al, cl
mov byte [esp + 0xc9], al
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
push 0
push edx
push eax
push 0x142
push edi
lea ecx, [esp + 0x58]
call fcn.10011de0
mov esi, eax
jmp 0x10018681
cmp eax, 2
je 0x1001864c
cmp eax, 3
je 0x1001864c
xor esi, esi
jmp 0x10018681
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
push 0
push ecx
push 0
push edx
push eax
push 0x142
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
test edi, edi
mov esi, eax
je 0x10018681
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edi, dword [esp + 0x30]
mov eax, dword [edi]
test eax, eax
je 0x100186a6
push eax
call fcn.10010b90
test eax, eax
je 0x100186a6
mov dword [edi], 0
mov eax, dword [esp + 0x10c]
push 0
movzx edx, si
push edx
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x44]
call fcn.10011b60
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xf4
ret 0x14