Function at 0x1004a4f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101703b4
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x101bd92c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x510], ecx
mov esi, dword [ebp + 8]
xor eax, eax
push 0x3e6
push eax
mov word [ebp - 0x504], ax
lea eax, [ebp - 0x502]
push eax
call fcn.10098090
add esp, 0xc
lea ecx, [ebp - 0x55c]
call fcn.100b4370
push 0x1019a4e4
push str.MENUDATA
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1004a7f2
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 ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.10090f8f
push esi
push 0
push eax
mov dword [ebp - 0x50c], eax
call fcn.10098090
push edi
mov edi, dword [ebp - 0x50c]
push ebx
push edi
call fcn.10096710
add esp, 0x1c
lea ecx, [ebp - 0x55c]
push 0
push 0
push edi
call fcn.100b6620
push str.TheAppMenu
lea ecx, [ebp - 0x55c]
call fcn.100b38b0
mov esi, eax
test esi, esi
je 0x1004a7f2
push 0x103
lea eax, [ebp - 0x11b]
push 0
push eax
mov byte [ebp - 0x11c], 0
call fcn.10098090
add esp, 0xc
mov ecx, esi
call fcn.100b3950
mov ebx, eax
test ebx, ebx
je 0x1004a7de
mov edi, edi
push 0x1c
call fcn.10092352
mov edi, eax
add esp, 4
mov dword [ebp - 0x514], edi
test edi, edi
je 0x1004a64f
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
push eax
mov byte [ebp - 4], 2
push 0x10199228
mov ecx, edi
mov dword [edi + 0x18], eax
call fcn.100048b0
jmp 0x1004a651
xor edi, edi
mov byte [ebp - 4], 0
push 0xc
mov dword [ebp - 0x508], edi
call fcn.10092352
mov esi, eax
add esp, 4
test esi, esi
je 0x1004a681
mov dword [esi], vtable.CMultiMenu.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x1004a683
xor esi, esi
push 0xc
call fcn.10092352
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1004a6a9
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
jmp 0x1004a6ab
xor ecx, ecx
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov dword [edi + 0x18], esi
mov eax, dword [ebx + 0x20]
add eax, 8
je 0x1004a7d8
lea edx, [ebp - 0x11c]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x1004a6d0
lea eax, [ebp - 0x11c]
push eax
call fcn.10122e1c
add esp, 4
lea eax, [ebp - 0x11c]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
lea eax, [ebp - 0x504]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x11c]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
mov esi, dword [ebp - 0x510]
push ebx
mov ecx, esi
call fcn.1004a850
cmp word [ebp - 0x504], 0
jne 0x1004a740
xor ecx, ecx
jmp 0x1004a75f
lea ecx, [ebp - 0x504]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004a750
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x504]
push eax
mov ecx, edi
call fcn.100048b0
mov ecx, ebx
call fcn.100b39c0
mov esi, dword [esi]
mov ebx, eax
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x508]
cmp ecx, eax
jae 0x1004a7b6
mov ecx, dword [esi]
lea edx, [ebp - 0x508]
cmp ecx, edx
ja 0x1004a7b6
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x1004a7a6
push ecx
mov ecx, esi
call fcn.10012850
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
je 0x1004a7cc
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x1004a7cc
cmp eax, dword [esi + 8]
jne 0x1004a7c3
push ecx
mov ecx, esi
call fcn.10012850
mov eax, dword [esi + 4]
test eax, eax
je 0x1004a7cc
mov dword [eax], edi
add dword [esi + 4], 4
test ebx, ebx
jne 0x1004a610
mov edi, dword [ebp - 0x50c]
test edi, edi
je 0x1004a7eb
push edi
call fcn.1009503c
add esp, 4
mov esi, 1
jmp 0x1004a7f4
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x528]
mov dword [ebp - method.TiXmlDocument.virtual_0], vtable.TiXmlDocument.0
cmp eax, 0x101e189c
je 0x1004a81b
push eax
call fcn.1009503c
add esp, 4
lea ecx, [ebp - 0x55c]
call fcn.100b4000
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1009174c
mov esp, ebp
pop ebp
ret 4