Function at 0x410780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497d2d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x4e20c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push dword [ecx + 0xc]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetMenu]
push 0
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
xor esi, esi
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x410801
push esi
push edi
call dword [sym.imp.USER32.dll_GetMenuItemID]
xor ecx, ecx
mov edx, 8
cmp eax, dword [ebp + 8]
cmove ecx, edx
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_CheckMenuItem]
push edi
inc esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp esi, eax
jl 0x4107d7
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.language
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.0041c9d0
mov dword [ebp - 4], 0
call fcn.0040a280
mov edx, dword [ebp - 0x10]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x20], esp
lea esi, [eax + 0x30]
mov edx, dword [edx + 0x2c]
call fcn.00405540
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0042b570
xorps xmm0, xmm0
mov esi, eax
lea eax, [ebp - 0x38]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x38], 0
movq qword [ebp - 0x30], xmm0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
push dword [ebp - 0x38]
call fcn.004180c0
mov eax, dword [ebp + 8]
cdq
mov byte [ebp - 0x38], 5
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 3
sub esp, 0x18
lea eax, [ebp - 0x50]
mov dword [ebp - 0x28], esp
mov ecx, esp
push eax
call fcn.004143c0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0042b570
mov edi, eax
mov byte [ebp - 4], 5
mov dl, byte [edi]
mov cl, byte [ebp - 0x38]
mov byte [edi], cl
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0x38], dl
mov edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
push dword [ebp - 0x38]
call fcn.004180c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00416aa0
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x6665b4]
cmp eax, dword [esi + 4]
jle 0x41095b
push 0x6665b4
call fcn.0046eb04
add esp, 4
cmp dword [0x6665b4], 0xffffffff
jne 0x41095b
mov dword [ebp - 4], 7
push 0x58
push 0
push 0x666620
call fcn.004709e0
add esp, 0xc
call fcn.00409300
push 0x4a2ba0
call fcn.0046efd1
mov dword [ebp - 4], 0xffffffff
push 0x6665b4
call fcn.0046eab3
add esp, 8
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 0xf8]
call fcn.0041bd30
mov ecx, dword [ebp - 0x2c]
cmp byte [ecx + 0xd], 0
jne 0x410b33
mov eax, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
jl 0x410b33
lea eax, [ecx + 0x14]
mov ecx, 0x666620
push eax
call fcn.00408860
mov eax, dword [0x6665b4]
cmp eax, dword [esi + 4]
jle 0x4109f6
push 0x6665b4
call fcn.0046eb04
add esp, 4
cmp dword [0x6665b4], 0xffffffff
jne 0x4109f6
mov dword [ebp - 4], 8
push 0x58
push 0
push 0x666620
call fcn.004709e0
add esp, 0xc
call fcn.00409300
push 0x4a2ba0
call fcn.0046efd1
mov dword [ebp - 4], 0xffffffff
push 0x6665b4
call fcn.0046eab3
add esp, 8
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.language
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.0041c9d0
mov dword [ebp - 4], 9
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
mov ecx, 0x666628
push eax
call fcn.0041bfa0
mov esi, dword [ebp - 0x2c]
mov eax, dword [0x666628]
cmp byte [esi + 0xd], 0
jne 0x410a70
cmp dword [esi + 0x24], 0xf
lea eax, [esi + 0x10]
mov edx, dword [eax + 0x10]
jbe 0x410a4f
mov eax, dword [eax]
cmp dword [ebp - 0x3c], 0xf
lea ecx, [ebp - 0x50]
push edx
cmova ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x40]
push eax
call fcn.0042c800
add esp, 8
test eax, eax
mov eax, dword [0x666628]
jns 0x410a72
mov esi, eax
cmp esi, eax
lea eax, [ebp - 0x50]
push eax
je 0x410ac4
lea eax, [ebp - 0x34]
mov ecx, 0x666628
push eax
call fcn.0041bfa0
mov esi, dword [ebp - 0x2c]
cmp byte [esi + 0xd], 0
jne 0x410b33
cmp dword [esi + 0x24], 0xf
lea eax, [esi + 0x10]
mov edx, dword [eax + 0x10]
jbe 0x410aa3
mov eax, dword [eax]
cmp dword [ebp - 0x3c], 0xf
lea ecx, [ebp - 0x50]
push edx
cmova ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x40]
push eax
call fcn.0042c800
add esp, 8
test eax, eax
js 0x410b33
lea eax, [esi + 0x28]
jmp 0x410ace
mov ecx, 0x666620
call fcn.004095a0
cmp dword [eax + 0x14], 7
jbe 0x410ad6
mov eax, dword [eax]
push eax
push dword [ebp - 0x18]
push 0x400
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_ModifyMenuW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00416aa0
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov edi, dword [0x666350]
mov esi, dword [0x66634c]
cmp esi, edi
je 0x410b20
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 8]
add esi, 4
cmp esi, edi
jne 0x410b12
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push str.invalid_map_K__T__key
call fcn.00457192
int3