Function at 0x420961
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov dword [ebp - 0x80], ecx
push 0
mov eax, dword [ebp + 8]
and eax, 0xffff
push eax
call fcn.004241c5
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4209bc
mov ecx, 1
test ecx, ecx
je 0x42099e
mov dword [ebp - 0x84], 0
jmp 0x4209b5
mov edx, dword [ebp + 8]
push edx
push str._Cant_load_bitmap_for_toolbar__d__n
call fcn.00401f20
add esp, 8
mov dword [ebp - 0x84], eax
xor eax, eax
jmp 0x420d3b
mov eax, dword [ebp + 8]
and eax, 0xffff
mov dword [ebp - 0x10], eax
push 0xf1
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MFC42.DLL_AfxFindResourceHandle
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x420a11
push 0xf1
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x420a11
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x420a44
mov eax, 1
test eax, eax
je 0x420a26
mov dword [ebp - 0x88], 0
jmp 0x420a3d
mov ecx, dword [ebp + 8]
push ecx
push str._Cant_load_toolbar__d__n
call fcn.00401f20
add esp, 8
mov dword [ebp - 0x88], eax
xor eax, eax
jmp 0x420d3b
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 4]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx + 2]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x80]
cmp dword [edx + 0xc0], 0
jne 0x420b1a
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xc0], ecx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0xc4], edx
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], 4
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
push 0xa
push 0
push 0x21
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x80]
add ecx, 0x38
call sub.MFC42.DLL_CImageList::Create
push 0xa
push 0
push 0x21
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x80]
add ecx, 0x40
call sub.MFC42.DLL_CImageList::Create
jmp 0x420b99
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x80]
add edx, 0xc0
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x48]
jne 0x420b53
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 0x44]
jne 0x420b53
mov dword [ebp - 0x8c], 0
jmp 0x420b5d
mov dword [ebp - 0x8c], 1
cmp dword [ebp - 0x8c], 0
je 0x420b99
mov ecx, 1
test ecx, ecx
je 0x420b7b
mov dword [ebp - 0x90], 0
jmp 0x420b92
mov edx, dword [ebp + 8]
push edx
push str._Toolbar__d_button_size_differs__n
call fcn.00401f20
add esp, 8
mov dword [ebp - 0x90], eax
xor eax, eax
jmp 0x420d3b
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
push edx
call sub.MFC42.DLL_CGdiObject::FromHandle
mov dword [ebp - 0x6c], eax
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x6c], 0
jne 0x420bee
mov dword [ebp - 0x94], 0
jmp 0x420bfa
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov dword [ebp - 0x18], 0
jmp 0x420c24
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x18], edx
jge 0x420d0a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx + eax*2 + 8]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
jbe 0x420d05
lea eax, [ebp - 0x74]
push eax
mov cx, word [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x80]
add ecx, 0x48
call sub.MFC42.DLL_CMapWordToPtr::Lookup
test eax, eax
je 0x420c73
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x98], edx
jmp 0x420c7d
mov dword [ebp - 0x98], 0xffffffff
cmp dword [ebp - 0x98], 0
jl 0x420cb4
mov eax, 1
test eax, eax
je 0x420c9b
mov dword [ebp - 0x9c], 0
jmp 0x420cb2
mov ecx, dword [ebp - 0x28]
push ecx
push 0x45da14
call fcn.00401f20
add esp, 8
mov dword [ebp - 0x9c], eax
jmp 0x420cfc
mov dx, word [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x80]
add ecx, 0x48
call sub.MFC42.DLL_CMapWordToPtr::operator__
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, 1
test edx, edx
je 0x420cde
mov dword [ebp - 0xa0], 0
jmp 0x420cfc
mov eax, dword [ebp - 8]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push str.CCoolMenuManager::LoadToolbar__._Added_Menu_Id__d__Button_Number__d_n
call fcn.00401f20
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x420c1b
mov eax, dword [ebp - 0x80]
add eax, 0x24
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov ecx, dword [ebp - 0x7c]
call sub.MFC42.DLL_CUIntArray::SetAtGrow
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, 1
mov esp, ebp
pop ebp
ret 4