Function at 0x432eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d6997
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x55c6c0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0048b4c4
mov ebx, dword [eax + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 4
push dword [ebp + 8]
push ebx
call edi
test eax, eax
jne 0x432f0d
push 4
push dword [ebp + 8]
xor ebx, ebx
push ebx
call edi
test eax, eax
jne 0x432f0d
xor eax, eax
jmp 0x4332c5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x432f06
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_CreateMenu]
push eax
mov ecx, esi
call fcn.00499d1e
test eax, eax
je 0x432f06
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
movzx ecx, word [eax + 2]
lea edi, [ecx + eax + 4]
lea ecx, [esp + 0x40]
call fcn.00499ac1
mov dword [esp + 0x40], vtable.CTypedPtrArray_class_CPtrArray__class_BCMenu__.0
mov dword [esp + 0x60], ebx
mov dword [esp + 0x2c], vtable.CArray_int__int_.0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
push esi
mov byte [esp + 0x64], 1
push dword [esp + 0x4c]
lea ecx, [esp + 0x48]
call fcn.00499ae8
lea eax, [esp + 0x2c]
call fcn.00434a2b
movzx eax, word [edi]
push 2
pop ebx
mov dword [esp + 0x18], eax
add edi, ebx
and dword [esp + 0x18], 0x10
mov dword [esp + 0x24], eax
jne 0x432fb0
movzx ecx, word [edi]
mov dword [esp + 0x20], ecx
add edi, ebx
jmp 0x432fb5
and dword [esp + 0x20], 0
movzx eax, ax
mov dword [esp + 0x14], eax
test al, al
jns 0x432fc5
add dword [esp + 0x14], 0xffffff80
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x432fca
sub eax, edx
sar eax, 1
xor ecx, ecx
inc eax
mov edx, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048964c
mov edx, eax
mov dword [esp + 0x20], edx
pop ecx
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, ebx
test cx, cx
jne 0x432ff7
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x43300a
sub eax, edx
sar eax, 1
lea eax, [edi + eax*2 + 2]
mov dword [esp + 0x28], eax
cmp word [esp + 0x18], cx
je 0x4330d5
test byte [esp + 0x24], 0x80
je 0x433052
mov eax, dword [esp + 0x48]
dec eax
js 0x4331cd
cmp eax, dword [esp + 0x34]
jge 0x4331cd
mov ecx, dword [esp + 0x30]
mov dword [ecx + eax*4], 1
push 0x58
call fcn.0048961d
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x60], bl
test eax, eax
je 0x433071
mov ebx, eax
call fcn.00430ba8
mov ebx, eax
jmp 0x433073
xor ebx, ebx
mov byte [esp + 0x60], 1
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x4c], eax
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 0x40]
mov ecx, ebx
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], 1
call fcn.00434ccd
mov eax, dword [esp + 0x48]
dec eax
push eax
lea ecx, [esp + 0x44]
call fcn.00434b30
push dword [ebx + 4]
mov edi, dword [eax]
push dword [esp + 0x18]
push dword [esp + 0x24]
call fcn.00432ce9
push ebx
push dword [esp + 0x4c]
lea ecx, [esp + 0x48]
call fcn.00499ae8
lea eax, [esp + 0x2c]
call fcn.00434a2b
jmp 0x4331b0
mov eax, dword [esp + 0x48]
dec eax
push eax
lea ecx, [esp + 0x44]
call fcn.00434b30
movzx ecx, word [esp + 0x20]
mov edi, dword [eax]
push ecx
push dword [esp + 0x18]
push dword [esp + 0x24]
call fcn.00432ce9
test byte [esp + 0x24], 0x80
je 0x433120
mov eax, dword [esp + 0x48]
dec eax
js 0x4331cd
cmp eax, dword [esp + 0x34]
jge 0x4331cd
mov ecx, dword [esp + 0x30]
mov dword [ecx + eax*4], 1
mov edi, dword [esp + 0x48]
dec edi
js 0x4331b0
mov eax, dword [esp + 0x30]
lea eax, [eax + edi*4]
lea ebx, [edi + 1]
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4331cd
cmp edi, dword [esp + 0x34]
jge 0x4331cd
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
je 0x4331b0
mov eax, dword [esp + 0x48]
dec eax
push eax
lea ecx, [esp + 0x44]
call fcn.00434b30
push dword [eax]
call fcn.004334d3
push 1
push edi
lea ecx, [esp + 0x48]
call fcn.00499bc2
mov eax, dword [esp + 0x34]
cmp ebx, eax
jg 0x4331cd
cmp ebx, edi
jl 0x4331cd
cmp ebx, 1
jl 0x4331cd
sub eax, ebx
je 0x4331a1
mov ecx, dword [esp + 0x14]
shl eax, 2
push eax
lea edx, [ecx + 4]
push edx
push eax
push ecx
call fcn.004073f9
add esp, 0x10
dec dword [esp + 0x34]
sub dword [esp + 0x14], 4
dec edi
dec ebx
test edi, edi
jge 0x433141
push dword [esp + 0x1c]
call fcn.00489657
mov eax, dword [esp + 0x4c]
dec eax
pop ecx
cmp eax, 0xffffffff
je 0x4331d2
mov edi, dword [esp + 0x28]
jmp 0x432f8e
call fcn.0048a94a
push dword [esi + 4]
xor edi, edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x433299
mov ebx, dword [sym.imp.USER32.dll_ModifyMenuW]
push edi
lea ecx, [esi + 0xc]
call fcn.00434b30
lea ecx, [esp + 0x1c]
push ecx
push dword [eax]
call fcn.00430b62
push edi
mov ecx, esi
mov byte [esp + 0x64], 3
call fcn.00434b68
push edi
lea ecx, [esi + 0xc]
test eax, eax
je 0x433242
call fcn.00434b30
mov eax, dword [eax]
mov dword [eax + 0x10], 0x410
mov eax, dword [esp + 0x1c]
push edi
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.00434b68
push dword [esp + 0x28]
mov eax, dword [eax + 4]
push eax
push 0x410
jmp 0x433270
call fcn.00434b30
mov eax, dword [eax]
mov dword [eax + 0x10], 0x400
mov eax, dword [esp + 0x1c]
push edi
lea ecx, [esi + 0xc]
mov dword [esp + 0x2c], eax
call fcn.00434b30
mov eax, dword [eax]
push dword [esp + 0x28]
mov eax, dword [eax + 0x14]
push eax
push 0x400
push edi
push dword [esi + 4]
call ebx
mov byte [esp + 0x60], 1
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402883
push dword [esi + 4]
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x4331eb
xor edi, edi
inc edi
mov byte [esp + 0x60], 0
cmp dword [esp + 0x30], 0
mov dword [esi + 0x54], edi
je 0x4332b5
push dword [esp + 0x30]
call fcn.00489657
pop ecx
or dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.00499ad8
mov eax, edi
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