Function at 0x10050812
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x4ec
lea ebp, [esp - 4]
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x4ec], eax
push 0x60
mov eax, 0x101802a6
call fcn.1008546d
mov esi, dword [ebp + 0x4f8]
xor ebx, ebx
push 0x3e6
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 0x1c], ecx
mov word [ebp], bx
call fcn.10085bc0
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.1005e8b0
push 0x101863dc
push str.MENUDATA
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x100508ac
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10005414
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4ec]
xor ecx, ebp
call fcn.1008545e
add ebp, 0x4f0
leave
ret 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea edi, [esi + 1]
push edi
call fcn.100621c1
push edi
push ebx
push eax
mov dword [ebp - 0x14], eax
call fcn.10085bc0
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.10086310
add esp, 0x1c
push ebx
push ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x68]
call fcn.10060db0
push str.TheAppMenu
lea ecx, [ebp - 0x68]
call fcn.1005ddb0
mov esi, eax
cmp esi, ebx
jne 0x1005091e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10005414
mov eax, ebx
jmp 0x10050887
push 0x103
lea eax, [ebp + 0x3e9]
push ebx
push eax
mov byte [ebp + 0x3e8], bl
call fcn.10085bc0
add esp, 0xc
mov ecx, esi
call fcn.1005de50
mov edi, eax
jmp 0x10050a22
push 0x20
call fcn.10062191
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x10050966
mov ecx, eax
call fcn.10051017
mov dword [ebp - 0x10], eax
jmp 0x10050969
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
push 0xc
mov byte [ebp - 4], bl
mov dword [ebp - 0x18], eax
call fcn.10062191
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x10050990
mov ecx, eax
call fcn.10051204
mov esi, eax
jmp 0x10050992
xor esi, esi
push 0x10
mov byte [ebp - 4], bl
call fcn.10062191
pop ecx
cmp eax, ebx
je 0x100509ac
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x100509ae
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [ebp - 4], bl
call dword [edx + 4]
mov ecx, dword [ebp - 0x10]
push esi
call fcn.10050fbc
mov eax, dword [edi + 0x20]
add eax, 8
je 0x10050a2a
push eax
lea eax, [ebp + 0x3e8]
push eax
call fcn.10086120
lea eax, [ebp + 0x3e8]
push eax
call fcn.1008c279
lea eax, [ebp]
push eax
lea eax, [ebp + 0x3e8]
push eax
call fcn.1001c35f
add esp, 0x14
push esi
mov esi, dword [ebp - 0x1c]
push edi
mov ecx, esi
call fcn.10050639
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.10051049
mov ecx, edi
call fcn.1005dec0
mov ecx, dword [esi]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.10018f50
cmp edi, ebx
jne 0x10050947
cmp dword [ebp - 0x14], ebx
je 0x10050a38
push dword [ebp - 0x14]
call fcn.100621bc
pop ecx
xor ebx, ebx
inc ebx
jmp 0x1005090b