Function at 0x482ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494011
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov ebx, dword [ebp + 8]
push 4
push ebx
call sub.mfc90u.dll_AfxFindResourceHandle
push 4
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor edi, edi
cmp eax, edi
jne 0x482d54
push 4
push ebx
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
jne 0x482d54
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x482d3d
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
call dword [sym.imp.USER32.dll_CreateMenu]
push eax
mov ecx, esi
call sub.mfc90u.dll_CMenu::Attach
test eax, eax
je 0x482d3d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
movzx ecx, word [eax + 2]
lea ebx, [ecx + eax + 4]
lea ecx, [esp + 0x40]
call sub.mfc90u.dll_CPtrArray::CPtrArray
mov dword [esp + 0x40], vtable.CTypedPtrArray_class_CPtrArray__class_BCMenu__.0
mov dword [esp + 0x60], edi
mov dword [esp + 0x2c], vtable.CArray_int__int_.0
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0x60], 1
mov edx, dword [esp + 0x48]
push esi
push edx
lea ecx, [esp + 0x48]
call sub.mfc90u.dll_CPtrArray::SetAtGrow
mov edi, 1
lea esi, [esp + 0x2c]
call fcn.00484af0
mov eax, dword [esp + 0x30]
mov dword [eax], 0
lea esp, [esp]
movzx eax, word [ebx]
mov esi, eax
add ebx, 2
and esi, 0x10
mov dword [esp + 0x20], eax
jne 0x482e0d
movzx ecx, word [ebx]
mov dword [esp + 0x1c], ecx
add ebx, 2
jmp 0x482e15
mov dword [esp + 0x1c], 0
movzx eax, ax
mov dword [esp + 0x14], eax
test al, al
jns 0x482e27
add eax, 0xffffff80
mov dword [esp + 0x14], eax
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x482e30
sub eax, edx
sar eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
mov edi, eax
mov edx, edi
add esp, 4
mov dword [esp + 0x24], edi
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x482e65
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x482e80
sub eax, edx
sar eax, 1
lea eax, [ebx + eax*2 + 2]
mov dword [esp + 0x28], eax
test si, si
je 0x482f88
test byte [esp + 0x20], 0x80
je 0x482ecd
mov eax, dword [esp + 0x48]
add eax, 0xffffffff
js 0x483099
mov edi, dword [esp + 0x34]
cmp eax, edi
jge 0x483099
mov ecx, dword [esp + 0x30]
mov dword [ecx + eax*4], 1
jmp 0x482ed1
mov edi, dword [esp + 0x34]
push 0x5c
call sub.mfc90u.dll_new
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x60], 2
test eax, eax
je 0x482ef2
push eax
call fcn.00480860
mov esi, eax
jmp 0x482ef4
xor esi, esi
mov eax, dword [esp + 0x18]
mov byte [esp + 0x60], 1
mov edx, dword [eax + 0x50]
mov dword [esi + 0x50], edx
mov ecx, dword [eax + 0x4c]
mov dword [esi + 0x4c], ecx
mov edx, dword [eax + 0x44]
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], 1
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
mov ecx, esi
call sub.mfc90u.dll_CMenu::Attach
mov ecx, dword [esp + 0x48]
lea eax, [ecx - 1]
test eax, eax
jl 0x483099
cmp eax, ecx
jge 0x483099
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x4c]
mov ebx, dword [edx + eax*4]
push ecx
call fcn.00482b30
mov eax, dword [esp + 0x48]
push esi
push eax
lea ecx, [esp + 0x48]
call sub.mfc90u.dll_CPtrArray::SetAtGrow
mov ebx, edi
test edi, edi
jl 0x483099
inc edi
lea esi, [esp + 0x2c]
call fcn.00484af0
mov ecx, dword [esp + 0x30]
mov dword [ecx + ebx*4], 0
jmp 0x483079
mov ecx, dword [esp + 0x48]
lea eax, [ecx - 1]
test eax, eax
jl 0x483099
cmp eax, ecx
jge 0x483099
movzx edx, word [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x48]
mov ebx, dword [edx + eax*4]
push ecx
push edi
call fcn.00482b30
test byte [esp + 0x20], 0x80
je 0x482fe0
mov eax, dword [esp + 0x48]
add eax, 0xffffffff
js 0x483099
cmp eax, dword [esp + 0x34]
jge 0x483099
mov ecx, dword [esp + 0x30]
mov dword [ecx + eax*4], 1
mov ecx, dword [esp + 0x48]
lea esi, [ecx - 1]
test esi, esi
jl 0x483079
mov edx, dword [esp + 0x30]
lea ebx, [esi + 1]
lea edi, [edx + esi*4]
jmp 0x483004
mov ecx, dword [esp + 0x48]
test esi, esi
jl 0x483099
cmp esi, dword [esp + 0x34]
jge 0x483099
cmp dword [edi], 0
je 0x483079
lea eax, [ecx - 1]
test eax, eax
jl 0x483099
cmp eax, ecx
jge 0x483099
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + eax*4]
call fcn.004834b0
push 1
push esi
lea ecx, [esp + 0x48]
call sub.mfc90u.dll_CPtrArray::RemoveAt
mov eax, dword [esp + 0x34]
cmp ebx, eax
jg 0x483099
cmp ebx, esi
jl 0x483099
cmp ebx, 1
jl 0x483099
sub eax, ebx
je 0x48306c
add eax, eax
add eax, eax
push eax
lea edx, [edi + 4]
push edx
push eax
push edi
call dword [sym.imp.MSVCR90.dll_memmove_s]
add esp, 0x10
call fcn.00406950
dec dword [esp + 0x34]
dec esi
dec ebx
sub edi, 4
test esi, esi
jge 0x483000
mov eax, dword [esp + 0x24]
push eax
call sub.mfc90u.dll_delete__
mov ecx, dword [esp + 0x4c]
dec ecx
add esp, 4
cmp ecx, 0xffffffff
je 0x48309e
mov ebx, dword [esp + 0x28]
jmp 0x482df0
call fcn.004899ba
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 4]
push edx
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x483191
test ebx, ebx
jl 0x483099
cmp ebx, dword [esi + 0x10]
jge 0x483099
mov eax, dword [esi + 0xc]
lea edi, [ebx*4]
mov edx, dword [eax + edi]
add eax, edi
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.004807d0
mov byte [esp + 0x60], 3
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.mfc90u.dll_CMenu::FromHandle
test eax, eax
je 0x48312d
cmp ebx, dword [esi + 0x10]
jge 0x483099
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi]
add eax, edi
mov dword [ecx + 0x14], 0x410
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x14]
push ebx
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.mfc90u.dll_CMenu::FromHandle
mov eax, dword [eax + 4]
push edi
push eax
mov eax, dword [esi + 4]
push 0x410
push ebx
push eax
jmp 0x483169
cmp ebx, dword [esi + 0x10]
jge 0x483099
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi]
add eax, edi
mov dword [ecx + 0x14], 0x400
cmp ebx, dword [esi + 0x10]
jge 0x483099
mov eax, dword [esi + 0xc]
mov edx, dword [eax + edi]
mov ecx, dword [esp + 0x14]
add eax, edi
mov eax, dword [edx + 0x18]
mov edx, dword [esi + 4]
push ecx
push eax
push 0x400
push ebx
push edx
call dword [sym.imp.USER32.dll_ModifyMenuW]
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esi + 4]
push eax
inc ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp ebx, eax
jl 0x4830b6
mov eax, dword [esp + 0x30]
mov dword [esi + 0x58], 1
test eax, eax
je 0x4831a9
push eax
call sub.mfc90u.dll_delete__
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x60], 0xffffffff
call fcn.0048a082
mov eax, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4