Function at 0x56d2c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa00
mov eax, dword [0x5f6998]
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.00542dc0
push 0x7c
lea eax, [ebp - 0x900]
push esi
push eax
mov dword [ebp - 0x904], esi
call fcn.00542dc0
push 0x7c
lea ecx, [ebp - 0x9fc]
push esi
push ecx
mov dword [ebp - 0xa00], edi
call fcn.00542dc0
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 0x56d3b6
add edi, 4
cmp edi, ebx
jae 0x56d5b1
jmp 0x56d3c6
mov eax, dword [ebp - 0x918]
test eax, eax
je 0x56d3d8
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x90c], edx
add edi, 0x12
jmp 0x56d3f4
movzx eax, word [edi]
add edi, 2
mov dword [ebp - 0x910], eax
test al, 0x10
jne 0x56d3f4
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 0x56d418
mov edi, edi
add edi, 2
cmp word [edi], ax
jne 0x56d410
add edi, 2
mov dword [ebp - 0x920], edi
mov dword [ebp - 0x950], 0x2c
mov dword [ebp - 0x94c], 0x10
cmp dword [ebp - 0x918], eax
je 0x56d493
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 0x56d5a9
inc dword [ebp + esi*4 - 0x884]
test byte [ebp - 0x910], 0x10
mov eax, dword [ebp + esi*4 - 0x884]
je 0x56d531
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 0x56d5a3
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 0x56d5a3
dec esi
js 0x56d5b1
jmp 0x56d590
cmp dword [ebp + esi*4 - 0x904], 0
je 0x56d59f
dec esi
jns 0x56d590
jmp 0x56d5b1
test esi, esi
js 0x56d5b1
mov ebx, dword [ebp - 0x908]
cmp edi, ebx
jb 0x56d3c0
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.00542c3e
mov esp, ebp
pop ebp
ret