Function at 0x40a4e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x48], ecx
push 0xf1
mov eax, dword [ebp + 8]
push eax
call sub.mfc42.dll_AfxFindResourceHandle
mov dword [ebp - 8], eax
push 0xf1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40a537
mov dword [ebp - 8], 0
push 0xf1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40a544
xor eax, eax
jmp 0x40a6c2
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40a562
xor eax, eax
jmp 0x40a6c2
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a57c
xor eax, eax
jmp 0x40a6c2
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 6]
shl eax, 2
push eax
call sub.mfc42.dll_operatornew
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], 0
jmp 0x40a5ac
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x18], ecx
jge 0x40a5d6
mov ecx, dword [ebp - 0x10]
call fcn.0040bd80
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax + edx*2]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4], ecx
jmp 0x40a5a3
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 6]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x48]
call sub.mfc42.dll_CToolBar::SetButtons
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call sub.mfc42.dll_operatordelete
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x40a6ac
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 4]
push ecx
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 2]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040adf0
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 4]
add edx, 7
push edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 2]
add ecx, 7
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040adf0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
call sub.mfc42.dll_CToolBar::SetSizes
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 2]
mov eax, dword [ebp - 0x48]
mov dword [eax + 0xa0], edx
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 4]
mov eax, dword [ebp - 0x48]
mov dword [eax + 0xa4], edx
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.0040a6c8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040bd70
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4