Function at 0x468b80
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5622f6
mov eax, dword fs:[0]
push eax
sub esp, 0x70c
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x708], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0x720]
mov dword fs:[0], eax
mov edi, dword [esp + 0x734]
mov ebp, dword [esp + 0x730]
push edi
lea eax, [esp + 0x310]
push 0x208
xor esi, esi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], esi
call fcn.0054013c
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x468bf0
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
je 0x468c21
push 0x57c428
lea ecx, [esp + 0x310]
push 0x208
push ecx
call fcn.005400bf
add esp, 0xc
push 0x575240
lea edx, [esp + 0x310]
push 0x208
push edx
call fcn.005400bf
add esp, 0xc
call fcn.0050830c
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x468c55
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x310]
push edx
mov dword [esp + 0x730], esi
mov dword [esp + 0x94], 0x30
mov dword [esp + 0x98], 0x20
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x4691ca
jmp 0x468cb0
test byte [esp + 0xbc], 0x10
lea eax, [esp + 0xe8]
je 0x468fb3
mov ecx, 0x5770a4
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x468cf6
test dx, dx
je 0x468cf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x468cf6
add eax, 4
add ecx, 4
test dx, dx
jne 0x468cd0
xor eax, eax
jmp 0x468cfb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4691a1
mov ecx, 0x57805c
lea eax, [esp + 0xe8]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x468d36
test dx, dx
je 0x468d32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x468d36
add eax, 4
add ecx, 4
test dx, dx
jne 0x468d10
xor eax, eax
jmp 0x468d3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4691a1
mov dword [esp + 0x1c], vtable.CMenu.0
mov dword [esp + 0x20], 0
mov byte [esp + 0x728], 1
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
lea ecx, [esp + 0x20]
call fcn.005154f0
test eax, eax
je 0x468f95
push 1
lea eax, [esp + 0xec]
push 0
push eax
call fcn.004689b0
mov ecx, dword [ebp + 4]
add esp, 0xc
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov esi, dword [esp + 0x738]
mov edi, eax
cmp esi, edi
jge 0x468df7
mov edi, edi
mov edx, dword [ebp + 4]
push esi
push edx
call dword [sym.imp.USER32.dll_GetMenuItemID]
cmp eax, 0xffffffff
jne 0x468df7
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x8c]
push eax
push 1
push esi
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov eax, dword [esp + 0xac]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [0x5b3fe0]
mov eax, dword [eax + edx*4]
push eax
lea ecx, [esp + 0xec]
push ecx
call fcn.005408be
add esp, 8
test eax, eax
jl 0x468df7
inc esi
cmp esi, edi
jl 0x468da0
cmp dword [0x5ecedc], 0
mov eax, dword [0x5ed030]
je 0x468eb3
mov ecx, dword [esp + 0x20]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [0x5b3fe0]
mov eax, dword [eax + edx*4 - 0x1c]
mov edx, dword [ebp + 4]
push eax
push ecx
push 0x410
push esi
push edx
call dword [sym.imp.USER32.dll_InsertMenuW]
push 0x2c
lea eax, [esp + 0x64]
push 0
push eax
mov dword [esp + 0x68], 0x30
call fcn.00540610
mov eax, dword [0x5ed030]
mov edx, dword [0x5b3fe0]
dec eax
lea ecx, [eax*8]
sub ecx, eax
lea edi, [edx + ecx*4]
add esp, 0xc
mov dword [esp + 0x60], 0x80
cmp dword [edi + 0x10], 0
jne 0x468e95
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.0045be20
mov ecx, dword [esp + 0x18]
push ecx
push eax
call fcn.00458450
add esp, 8
mov dword [edi + 0x10], eax
mov ecx, dword [ebp + 4]
mov edx, dword [edi + 0x10]
lea eax, [esp + 0x5c]
push eax
push 1
push esi
push ecx
mov dword [esp + 0x98], edx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
jmp 0x468eca
mov edx, dword [esp + 0x20]
dec eax
push eax
mov eax, dword [ebp + 4]
push edx
push 0x510
push esi
push eax
call dword [sym.imp.USER32.dll_InsertMenuW]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], 1
test esi, esi
jne 0x468ede
xor eax, eax
jmp 0x468ef2
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468ee3
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401e70
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, edx
jge 0x468f26
push esi
lea ecx, [esp + 0x18]
call fcn.00401c00
mov ecx, dword [esp + 0x14]
mov edx, 0x5c
mov word [ecx + edi*2], dx
test esi, esi
jl 0x469249
cmp esi, dword [ecx - 8]
jg 0x469249
xor eax, eax
mov dword [ecx - 0xc], esi
mov word [ecx + esi*2], ax
lea eax, [esp + 0xe8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468f53
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401fe0
mov ebx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x20]
push ebx
push edx
call fcn.00468b80
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0051551c
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x728], 0
mov dword [esp + 0x1c], vtable.CMenu.0
call fcn.00515548
jmp 0x4691a1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468fb6
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 4
jle 0x4691a1
lea eax, [esp + esi*2 + 0xe2]
push 0x57c420
push eax
call fcn.005408be
add esp, 8
test eax, eax
jne 0x4691a1
test edi, edi
je 0x469005
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x468ff6
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00401e70
push 0x5c
lea ecx, [esp + 0x18]
call fcn.00405b30
lea eax, [esp + 0xe8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x469025
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401fe0
mov ebx, dword [esp + 0x14]
xor edx, edx
push edx
lea eax, [esp + 0xec]
push ebx
push eax
mov word [esp + esi*2 + 0xec], dx
call fcn.004689b0
mov ecx, dword [ebp + 4]
add esp, 0xc
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov esi, dword [esp + 0x738]
mov edi, eax
cmp esi, edi
jge 0x4690c1
lea ecx, [ecx]
mov edx, dword [ebp + 4]
push esi
push edx
call dword [sym.imp.USER32.dll_GetMenuItemID]
cmp eax, 0xffffffff
je 0x4690bc
mov edx, dword [0x5b3fe0]
sub eax, 0x3e8
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + ecx*4]
push eax
lea eax, [esp + 0xec]
push eax
call fcn.005408be
add esp, 8
test eax, eax
jl 0x4690c1
inc esi
cmp esi, edi
jl 0x469080
cmp dword [0x5ecedc], 0
mov eax, dword [0x5ed030]
je 0x46917b
mov edx, dword [0x5b3fe0]
lea ecx, [eax*8]
sub ecx, eax
mov ecx, dword [edx + ecx*4 - 0x1c]
push ecx
add eax, 0x3e7
push eax
mov eax, dword [ebp + 4]
push 0x400
push esi
push eax
call dword [sym.imp.USER32.dll_InsertMenuW]
push 0x2c
lea ecx, [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x38], 0x30
call fcn.00540610
mov eax, dword [0x5ed030]
dec eax
lea edx, [eax*8]
sub edx, eax
mov eax, dword [0x5b3fe0]
lea edi, [eax + edx*4]
add esp, 0xc
mov dword [esp + 0x30], 0x80
cmp dword [edi + 0x10], 0
jne 0x469160
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.0045be20
mov edx, dword [esp + 0x18]
push edx
push eax
call fcn.00458450
add esp, 8
mov dword [edi + 0x10], eax
mov edx, dword [ebp + 4]
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push 1
push esi
push edx
mov dword [esp + 0x68], eax
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
jmp 0x469195
lea ecx, [eax - 1]
push ecx
add eax, 0x3e7
push eax
mov eax, dword [ebp + 4]
push 0x500
push esi
push eax
call dword [sym.imp.USER32.dll_InsertMenuW]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], 1
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0xbc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x468cb0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
jne 0x4691fa
push 0x5f7e
call fcn.00508284
test eax, eax
je 0x4691eb
push 0x5f7e
push eax
lea ecx, [esp + 0x1c]
call fcn.00401da0
mov ebx, dword [esp + 0x14]
mov edx, dword [ebp + 4]
push ebx
push 0
push 1
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
lea eax, [ebx - 0x10]
mov dword [esp + 0x728], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469221
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x720]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x708]
xor ecx, esp
call fcn.0053fa67
add esp, 0x718
ret
push 0x80070057
call fcn.00401350
int3