Function at 0x407ca0
Capabilities:
Extract resource via kernel32 functions
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x43a78b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
mov eax, dword [esp + 0x26c]
push ebx
mov ebx, dword [0x44ecb4]
push ebp
push esi
push edi
push 0xf1
movzx eax, ax
push eax
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
jne 0x407ceb
xor eax, eax
jmp 0x407f97
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x407ce4
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x407f97
mov esi, dword [esp + 0x280]
test esi, esi
movzx ecx, word [ebx + 6]
setne al
mov dword [esp + 0x64], 0
add ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x274], 0
call fcn.00404850
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x407f80
test esi, esi
je 0x407d74
mov dword [ecx], 4
mov dword [ecx + 4], 0
mov word [ecx + 8], pe_nt_image_headers32
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
xor eax, eax
xor ebp, ebp
xor edx, edx
cmp ax, word [ebx + 6]
jae 0x407dd8
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
lea eax, [eax + 2]
lea eax, [ecx + eax*4]
lea ecx, [ecx]
cmp word [ebx + edx*2 + 8], 0
je 0x407dab
mov dword [eax - 8], ebp
inc ebp
movzx ecx, word [ebx + edx*2 + 8]
mov dword [eax - 4], ecx
mov word [eax], 4
jmp 0x407dbe
mov dword [eax - 8], 8
mov dword [eax - 4], 0
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], 0
inc edx
mov dword [eax + 4], 0
add eax, 0x14
movzx ecx, word [ebx + 6]
cmp edx, ecx
jl 0x407d90
push 0
push dword [0x44ecb0]
push dword [esp + 0x290]
push dword [esp + 0x284]
push 0x64
push 0x64
push 0
push 0
push dword [esp + 0x2a4]
push 0
push str.ToolbarWindow32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
test edi, edi
je 0x407f80
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x14
push 0x41e
push edi
call esi
push 0
push 0
push 0x31
push edi
call esi
mov esi, eax
test esi, esi
jne 0x407e41
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, eax
push 0x38
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], 0
push 0
push eax
call fcn.00423310
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0x3c
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
push dword [esp + 0x28]
call fcn.004234c0
mov ecx, dword [esp + 0x280]
add esp, 4
mov esi, dword [0x44ecb4]
movzx eax, ax
mov dword [esp + 0x10], eax
push 2
movzx eax, cx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
movzx ecx, word [eax + 0xe]
cmp ecx, 4
jbe 0x407eeb
push 0x2040
or edx, 0xffffffff
mov eax, 0xff000000
cmp ecx, 0x20
mov ecx, dword [esp + 0x280]
push 0
cmove eax, edx
push eax
movzx eax, word [ebx + 2]
push 1
push eax
movzx eax, cx
push eax
push dword [0x44ecb4]
call dword [sym.imp.COMCTL32.dll_ImageList_LoadImageA]
push eax
push 0
push 0x430
jmp 0x407f11
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x27c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push ebp
push 0x413
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
call esi
push dword [esp + 0x20]
push dword [esp + 0x18]
push 0x414
push edi
call esi
movzx eax, word [ebx + 4]
mov ebp, dword [esp + 0x10]
cmp ax, bp
ja 0x407f3a
movzx eax, bp
movzx ecx, ax
movzx eax, word [ebx + 2]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x420
push edi
call esi
movzx eax, word [ebx + 4]
cmp ax, bp
ja 0x407f5d
movzx eax, bp
add eax, 7
movzx ecx, ax
mov ax, word [ebx + 2]
add ax, 7
shl ecx, 0x10
movzx eax, ax
or ecx, eax
push ecx
push 0
push 0x41f
push edi
call esi
jmp 0x407f82
xor edi, edi
lea eax, [esp + 0x68]
cmp dword [esp + 0x64], eax
je 0x407f95
lea ecx, [esp + 0x64]
call fcn.0040b540
mov eax, edi
mov ecx, dword [esp + 0x268]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x264
ret