Function at 0x410980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5ecd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x4f0100]
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 0x410a01
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 0x4109d7
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.0041cd80
mov dword [ebp - 4], 0
call fcn.0040a530
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.004056e0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0042b980
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.00418270
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.00414610
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0042b980
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.00418270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00416c70
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x67490c]
cmp eax, dword [esi + 4]
jle 0x410b5b
push 0x67490c
call fcn.0047b571
add esp, 4
cmp dword [0x67490c], 0xffffffff
jne 0x410b5b
mov dword [ebp - 4], 7
push 0x58
push 0
push 0x674978
call fcn.0047d590
add esp, 0xc
call fcn.004095e0
push 0x4b14d0
call fcn.0047ba41
mov dword [ebp - 4], 0xffffffff
push 0x67490c
call fcn.0047b520
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.0041c0e0
mov ecx, dword [ebp - 0x2c]
cmp byte [ecx + 0xd], 0
jne 0x410d33
mov eax, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
jl 0x410d33
lea eax, [ecx + 0x14]
mov ecx, 0x674978
push eax
call fcn.00408b40
mov eax, dword [0x67490c]
cmp eax, dword [esi + 4]
jle 0x410bf6
push 0x67490c
call fcn.0047b571
add esp, 4
cmp dword [0x67490c], 0xffffffff
jne 0x410bf6
mov dword [ebp - 4], 8
push 0x58
push 0
push 0x674978
call fcn.0047d590
add esp, 0xc
call fcn.004095e0
push 0x4b14d0
call fcn.0047ba41
mov dword [ebp - 4], 0xffffffff
push 0x67490c
call fcn.0047b520
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.0041cd80
mov dword [ebp - 4], 9
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
mov ecx, 0x674980
push eax
call fcn.0041c350
mov esi, dword [ebp - 0x2c]
mov eax, dword [0x674980]
cmp byte [esi + 0xd], 0
jne 0x410c70
cmp dword [esi + 0x24], 0xf
lea eax, [esi + 0x10]
mov edx, dword [eax + 0x10]
jbe 0x410c4f
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.0042cc90
add esp, 8
test eax, eax
mov eax, dword [0x674980]
jns 0x410c72
mov esi, eax
cmp esi, eax
lea eax, [ebp - 0x50]
push eax
je 0x410cc4
lea eax, [ebp - 0x34]
mov ecx, 0x674980
push eax
call fcn.0041c350
mov esi, dword [ebp - 0x2c]
cmp byte [esi + 0xd], 0
jne 0x410d33
cmp dword [esi + 0x24], 0xf
lea eax, [esi + 0x10]
mov edx, dword [eax + 0x10]
jbe 0x410ca3
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.0042cc90
add esp, 8
test eax, eax
js 0x410d33
lea eax, [esi + 0x28]
jmp 0x410cce
mov ecx, 0x674978
call fcn.00409880
cmp dword [eax + 0x14], 7
jbe 0x410cd6
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.00416c70
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov edi, dword [0x6746dc]
mov esi, dword [0x6746d8]
cmp esi, edi
je 0x410d20
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 8]
add esi, 4
cmp esi, edi
jne 0x410d12
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.00463c3a
int3