Function at 0x10046615
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x4ec
lea ebp, [esp - 4]
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp + 0x4ec], eax
push 0x60
mov eax, 0x100d07e8
call fcn.10071ffd
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.10072750
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.1004b850
push 0x100d5350
push str.MENUDATA
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x100466af
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10004d97
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.10071fee
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.1004ed41
push edi
push ebx
push eax
mov dword [ebp - 0x14], eax
call fcn.10072750
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.10072ea0
add esp, 0x1c
push ebx
push ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x68]
call fcn.1004dd50
push str.TheAppMenu
lea ecx, [ebp - 0x68]
call fcn.1004ad70
mov esi, eax
cmp esi, ebx
jne 0x10046721
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10004d97
mov eax, ebx
jmp 0x1004668a
push 0x103
lea eax, [ebp + 0x3e9]
push ebx
push eax
mov byte [ebp + 0x3e8], bl
call fcn.10072750
add esp, 0xc
mov ecx, esi
call fcn.1004ae10
mov edi, eax
jmp 0x10046825
push 0x20
call fcn.1004ed11
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x10046769
mov ecx, eax
call fcn.10046cbc
mov dword [ebp - 0x10], eax
jmp 0x1004676c
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
push 0xc
mov byte [ebp - 4], bl
mov dword [ebp - 0x18], eax
call fcn.1004ed11
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x10046793
mov ecx, eax
call fcn.10046e76
mov esi, eax
jmp 0x10046795
xor esi, esi
push 0x10
mov byte [ebp - 4], bl
call fcn.1004ed11
pop ecx
cmp eax, ebx
je 0x100467af
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x100467b1
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.10046ca0
mov eax, dword [edi + 0x20]
add eax, 8
je 0x1004682d
push eax
lea eax, [ebp + 0x3e8]
push eax
call fcn.10072cb0
lea eax, [ebp + 0x3e8]
push eax
call fcn.10078b29
lea eax, [ebp]
push eax
lea eax, [ebp + 0x3e8]
push eax
call fcn.1001cd78
add esp, 0x14
push esi
mov esi, dword [ebp - 0x1c]
push edi
mov ecx, esi
call fcn.1004643c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.10046cee
mov ecx, edi
call fcn.1004ae80
mov ecx, dword [esi]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000d144
cmp edi, ebx
jne 0x1004674a
cmp dword [ebp - 0x14], ebx
je 0x1004683b
push dword [ebp - 0x14]
call fcn.1004ed3c
pop ecx
xor ebx, ebx
inc ebx
jmp 0x1004670e