Function at 0x4090b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x412efa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [esp + 0x4c]
push edi
mov ebx, ecx
push 4
push esi
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_AfxFindResourceHandle
mov edi, eax
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
xor esi, esi
cmp eax, esi
jne 0x409105
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, esi
jne 0x409129
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 4
call dword [sym.imp.USER32.dll_CreateMenu]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CMenu::Attach
cmp eax, esi
jne 0x409151
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 4
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov cx, word [eax + 2]
lea edi, [ecx + eax + 4]
lea ecx, [esp + 0x54]
mov dword [esp + 0x10], edi
call fcn.00411b50
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], esi
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov dword [esp + 0x30], 0x4159bc
mov dword [esp + 0x1c], 0x4159a8
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov edx, dword [esp + 0x38]
push ebx
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 2
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.0040c6b0
jmp 0x4091c8
mov edi, dword [esp + 0x10]
xor esi, esi
mov bx, word [edi]
mov ebp, ebx
and ebp, 0x10
cmp bp, si
jne 0x409204
mov si, word [edi + 2]
add edi, 4
push edi
lea ecx, [esp + 0x58]
push 0x41a678
push ecx
call sub.MFC42.DLL_CString::Format
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esp + 0x20]
add esp, 0x10
lea eax, [edx + eax*2 + 6]
mov dword [esp + 0x10], eax
jmp 0x40922c
lea ecx, [edi + 2]
lea edx, [esp + 0x54]
push ecx
push 0x41a678
push edx
call sub.MFC42.DLL_CString::Format
lea eax, [edi + 4]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
lea ecx, [edi + eax*2 + 6]
add esp, 0x10
mov dword [esp + 0x10], ecx
test bp, bp
je 0x4092ff
test bl, 0x80
je 0x409250
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
and ebx, 0xff7f
mov dword [edx + eax*4 - 4], 1
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
push 0x6c
mov edi, dword [ecx + edx*4 - 4]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x4c], 3
je 0x409282
mov ecx, dword [edi + 4]
push ecx
mov ecx, eax
call fcn.00405840
mov esi, eax
jmp 0x409284
xor esi, esi
mov eax, dword [esp + 0x14]
mov byte [esp + 0x4c], 2
mov edx, dword [eax + 0x48]
mov dword [esi + 0x48], edx
mov ecx, dword [eax + 0x44]
mov dword [esi + 0x44], ecx
mov edx, dword [eax + 0x3c]
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], 1
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
mov ecx, esi
call sub.MFC42.DLL_CMenu::Attach
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x5c]
and ebx, 0xffff
mov ecx, edi
push ebx
push eax
call fcn.00408360
mov ecx, dword [esp + 0x38]
push esi
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
mov esi, eax
inc eax
push eax
lea ecx, [esp + 0x24]
call fcn.0040c570
mov edx, dword [esp + 0x20]
mov dword [edx + esi*4], 0
jmp 0x409391
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
mov eax, ebx
and esi, 0xffff
and eax, 0xffff
push 0xffffffffffffffff
and al, 0x7f
push esi
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [edx + eax*4 - 4]
call fcn.00408360
test bl, 0x80
je 0x40933d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
mov dword [ecx + edx*4 - 4], 1
mov eax, dword [esp + 0x38]
lea esi, [eax - 1]
test esi, esi
jl 0x409391
mov ecx, dword [esp + 0x20]
cmp dword [ecx + esi*4], 0
je 0x409391
push 1
push esi
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CPtrArray::RemoveAt
mov eax, dword [esp + 0x24]
sub eax, esi
dec eax
je 0x409385
lea edx, [eax*4]
mov eax, dword [esp + 0x20]
push edx
lea ecx, [eax + esi*4 + 4]
lea edx, [eax + esi*4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov ecx, dword [esp + 0x24]
dec ecx
dec esi
mov dword [esp + 0x24], ecx
jns 0x409348
mov eax, dword [esp + 0x38]
dec eax
cmp eax, 0xffffffff
jne 0x4091c2
mov dword [esp + 0x1c], 0x4159a8
mov eax, dword [esp + 0x20]
mov byte [esp + 0x4c], 4
test eax, eax
pop ebp
je 0x4093be
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], 0x414f5c
mov byte [esp + 0x48], 0
call fcn.00411eec
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4