Function at 0x572cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa00
mov eax, dword [0x6459b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x980]
push ecx
push 1
xor esi, esi
push esi
push edi
mov dword [ebp - 0x914], edi
mov dword [ebp - 0x908], eax
mov dword [ebp - 0x90c], esi
mov dword [ebp - 0x980], 0x2c
mov dword [ebp - 0x97c], 6
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
push 0x7c
lea edx, [ebp - 0x880]
push esi
push edx
mov dword [ebp - 0x884], esi
call fcn.00546d60
push 0x7c
lea eax, [ebp - 0x900]
push esi
push eax
mov dword [ebp - 0x904], esi
call fcn.00546d60
push 0x7c
lea ecx, [ebp - 0x9fc]
push esi
push ecx
mov dword [ebp - 0xa00], edi
call fcn.00546d60
mov edx, dword [ebp - 0x908]
add esp, 0x24
push 4
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
mov dword [ebp - 0x908], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x91c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 0x908]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
movzx ecx, word [edi + 2]
lea ebx, [edi + eax]
movzx eax, word [edi]
mov dword [ebp - 0x908], ebx
mov dword [ebp - 0x918], eax
lea edi, [edi + ecx + 4]
test eax, eax
je 0x572de6
add edi, 4
cmp edi, ebx
jae 0x572fe1
jmp 0x572df6
mov eax, dword [ebp - 0x918]
test eax, eax
je 0x572e08
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x90c], edx
add edi, 0x12
jmp 0x572e24
movzx eax, word [edi]
add edi, 2
mov dword [ebp - 0x910], eax
test al, 0x10
jne 0x572e24
movzx eax, word [edi]
mov dword [ebp - 0x90c], eax
add edi, 2
push 0x400
push edi
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
cmp word [edi], ax
je 0x572e48
mov edi, edi
add edi, 2
cmp word [edi], ax
jne 0x572e40
add edi, 2
mov dword [ebp - 0x920], edi
mov dword [ebp - 0x950], 0x2c
mov dword [ebp - 0x94c], 0x10
cmp dword [ebp - 0x918], eax
je 0x572ec3
mov ecx, dword [ebp - 0x914]
lea edx, [ebp - 0x950]
push edx
push eax
mov dword [ebp - 0x928], eax
mov dword [ebp - 0x92c], eax
mov eax, dword [ebp - 0x90c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov ecx, dword [ebp - 0x90c]
lea eax, [ebp - 0x950]
push eax
lea edx, [ebp - 0x804]
push 0
mov dword [ebp - 0x92c], edx
mov edx, dword [ebp - 0x914]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
jmp 0x572fd9
inc dword [ebp + esi*4 - 0x884]
test byte [ebp - 0x910], 0x10
mov eax, dword [ebp + esi*4 - 0x884]
je 0x572f61
mov edi, dword [ebp + esi*4 - 0xa00]
lea ebx, [eax - 1]
xor eax, eax
mov dword [ebp - 0x928], eax
mov dword [ebp - 0x92c], eax
lea eax, [ebp - 0x950]
push eax
push 1
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
lea edx, [ebp - 0x950]
push edx
push 1
push ebx
lea ecx, [ebp - 0x804]
push edi
mov dword [ebp - 0x92c], ecx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov eax, dword [ebp - 0x910]
and eax, 0x80
mov dword [ebp + esi*4 - 0x904], eax
mov eax, dword [ebp + esi*4 - 0x884]
dec eax
push eax
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, dword [ebp - 0x920]
mov dword [ebp + esi*4 - 0x9fc], eax
inc esi
mov dword [ebp + esi*4 - 0x884], 0
jmp 0x572fd3
mov edx, dword [ebp - 0x90c]
mov ebx, dword [ebp + esi*4 - 0xa00]
xor eax, eax
lea ecx, [ebp - 0x950]
push ecx
push eax
push edx
push ebx
mov dword [ebp - 0x928], eax
mov dword [ebp - 0x92c], eax
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov edx, dword [ebp - 0x90c]
lea ecx, [ebp - 0x950]
push ecx
push 0
push edx
lea eax, [ebp - 0x804]
push ebx
mov dword [ebp - 0x92c], eax
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
test byte [ebp - 0x910], 0x80
je 0x572fd3
dec esi
js 0x572fe1
jmp 0x572fc0
cmp dword [ebp + esi*4 - 0x904], 0
je 0x572fcf
dec esi
jns 0x572fc0
jmp 0x572fe1
test esi, esi
js 0x572fe1
mov ebx, dword [ebp - 0x908]
cmp edi, ebx
jb 0x572df0
mov eax, dword [ebp - 0x91c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00546bde
mov esp, ebp
pop ebp
ret