Function at 0x4612a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4b0772
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ecba0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00477002
mov edi, dword [esp + 0x60]
mov esi, dword [eax + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 4
push edi
push esi
call ebp
test eax, eax
jne 0x4612f8
push 4
push edi
xor esi, esi
push esi
call ebp
test eax, eax
jne 0x4612f8
xor eax, eax
jmp 0x46177f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4612f1
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
call edx
call dword [sym.imp.USER32.dll_CreateMenu]
push eax
mov ecx, ebx
call fcn.00477169
test eax, eax
je 0x4612f1
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
movzx ecx, word [eax + 2]
lea esi, [ecx + eax + 4]
lea ecx, [esp + 0x3c]
call fcn.0047ebe3
mov dword [esp + 0x3c], vtable.CTypedPtrArray_class_CPtrArray__class_BCMenu__.0
mov dword [esp + 0x58], edi
mov dword [esp + 0x28], vtable.CArray_int__int_.0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov edx, dword [esp + 0x44]
push ebx
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x60], 1
call fcn.0047ed79
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x30]
call fcn.00464190
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
movzx eax, word [esi]
add esi, 2
mov ecx, eax
and ecx, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x20], ecx
jne 0x4613af
movzx ecx, word [esi]
add esi, 2
mov dword [esp + 0x18], ecx
mov dword [esp + 0x60], esi
jmp 0x4613b3
mov dword [esp + 0x18], edi
movzx eax, ax
mov dword [esp + 0x14], eax
test al, al
jns 0x4613c5
add eax, 0xffffff80
mov dword [esp + 0x14], eax
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4613d0
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 fcn.0046a8bb
mov esi, dword [esp + 0x64]
mov ebp, eax
mov edx, ebp
add esp, 4
mov dword [esp + 0x24], ebp
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x461410
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461424
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 + 2]
mov dword [esp + 0x60], eax
cmp word [esp + 0x20], cx
je 0x46152c
test byte [esp + 0x1c], 0x80
je 0x461473
mov eax, dword [esp + 0x44]
add eax, 0xffffffff
js 0x46163d
mov edi, dword [esp + 0x30]
cmp eax, edi
jge 0x46163d
mov ecx, dword [esp + 0x2c]
mov dword [ecx + eax*4], 1
jmp 0x461477
mov edi, dword [esp + 0x30]
push 0x5c
call fcn.0046a881
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x58], 2
test eax, eax
je 0x461499
mov ecx, eax
call fcn.0045b0f0
mov esi, eax
jmp 0x46149b
xor esi, esi
mov edx, dword [ebx + 0x50]
mov dword [esi + 0x50], edx
mov eax, dword [ebx + 0x4c]
mov dword [esi + 0x4c], eax
mov ecx, dword [ebx + 0x44]
mov byte [esp + 0x58], 1
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], 1
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
mov ecx, esi
call fcn.00477169
mov ecx, dword [esp + 0x44]
lea eax, [ecx - 1]
test eax, eax
jl 0x46163d
cmp eax, ecx
jge 0x46163d
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [edx + eax*4]
push ebp
call fcn.00460490
mov eax, dword [esp + 0x44]
push esi
push eax
lea ecx, [esp + 0x44]
call fcn.0047ed79
mov esi, edi
test edi, edi
jl 0x46163d
push 0xffffffffffffffff
inc edi
push edi
lea ecx, [esp + 0x30]
call fcn.00464190
mov ecx, dword [esp + 0x2c]
mov dword [ecx + esi*4], 0
jmp 0x46161f
mov ecx, dword [esp + 0x44]
lea eax, [ecx - 1]
test eax, eax
jl 0x46163d
cmp eax, ecx
jge 0x46163d
movzx edx, word [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [edx + eax*4]
push ebp
call fcn.00460490
test byte [esp + 0x1c], 0x80
je 0x461586
mov eax, dword [esp + 0x44]
add eax, 0xffffffff
js 0x46163d
cmp eax, dword [esp + 0x30]
jge 0x46163d
mov ecx, dword [esp + 0x2c]
mov dword [ecx + eax*4], 1
mov ecx, dword [esp + 0x44]
lea esi, [ecx - 1]
test esi, esi
jl 0x46161f
mov edx, dword [esp + 0x2c]
lea edi, [esi + 1]
lea ebp, [edx + esi*4]
jmp 0x4615a5
mov ecx, dword [esp + 0x44]
test esi, esi
jl 0x46163d
cmp esi, dword [esp + 0x30]
jge 0x46163d
cmp dword [ebp], 0
je 0x46161b
lea eax, [ecx - 1]
test eax, eax
jl 0x46163d
cmp eax, ecx
jge 0x46163d
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + eax*4]
call fcn.00460640
push 1
push esi
lea ecx, [esp + 0x44]
call fcn.0047ee53
mov eax, dword [esp + 0x30]
cmp edi, eax
jg 0x46163d
cmp edi, esi
jl 0x46163d
cmp edi, 1
jl 0x46163d
sub eax, edi
je 0x46160e
add eax, eax
add eax, eax
push eax
lea edx, [ebp + 4]
push edx
push eax
push ebp
call fcn.0048eb4d
push eax
call fcn.004042c0
add esp, 0x14
dec dword [esp + 0x30]
dec esi
dec edi
sub ebp, 4
test esi, esi
jge 0x4615a1
mov ebp, dword [esp + 0x24]
push ebp
call fcn.0046a8b0
mov eax, dword [esp + 0x48]
dec eax
add esp, 4
cmp eax, 0xffffffff
je 0x461642
mov esi, dword [esp + 0x60]
xor edi, edi
jmp 0x461386
call fcn.0046d5b0
mov ecx, dword [ebx + 4]
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x46174c
mov ebp, dword [sym.imp.USER32.dll_ModifyMenuA]
lea esp, [esp]
test esi, esi
jl 0x46163d
cmp esi, dword [ebx + 0x10]
jge 0x46163d
mov eax, dword [ebx + 0xc]
lea edi, [esi*4]
mov ecx, dword [eax + edi]
add eax, edi
lea edx, [esp + 0x60]
push edx
call fcn.0045e180
mov eax, dword [ebx + 4]
push esi
push eax
mov byte [esp + 0x60], 3
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.00477134
test eax, eax
je 0x4616d6
cmp esi, dword [ebx + 0x10]
jge 0x46163d
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + edi]
add eax, edi
mov dword [ecx + 0x14], 0x410
mov edx, dword [ebx + 4]
mov edi, dword [esp + 0x60]
push esi
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.00477134
mov eax, dword [eax + 4]
push edi
push eax
mov eax, dword [ebx + 4]
push 0x410
push esi
push eax
jmp 0x461712
cmp esi, dword [ebx + 0x10]
jge 0x46163d
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + edi]
add eax, edi
mov dword [ecx + 0x14], 0x400
cmp esi, dword [ebx + 0x10]
jge 0x46163d
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + edi]
mov ecx, dword [esp + 0x60]
add eax, edi
mov eax, dword [edx + 0x18]
mov edx, dword [ebx + 4]
push ecx
push eax
push 0x400
push esi
push edx
call ebp
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x58], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461739
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 4]
push ecx
inc esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp esi, eax
jl 0x461660
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x58], 1
mov byte [esp + 0x58], 0
test eax, eax
je 0x461769
push eax
call fcn.0046a8b0
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], 0xffffffff
call fcn.0047ebfa
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4