Function at 0x4db354
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x3a
add esp, 0xfffff004
push eax
dec eax
jne 0x4db35d
mov eax, dword [ebp - 4]
add esp, 0xfffff50c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3aaf8], ebx
mov dword [ebp - 0x3aaf4], ebx
mov dword [ebp - 0x3aaf0], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], ebx
mov esi, edx
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4dba28
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.0040485c
mov byte [ebp - 0x35], 1
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x456574]
call fcn.0045b9f4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x10], 0
je 0x4db47e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
call fcn.00459260
mov esi, eax
dec esi
test esi, esi
jl 0x4db47e
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
call fcn.004db270
mov edx, eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
call fcn.004595dc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
call fcn.00459260
test eax, eax
jle 0x4db476
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
call fcn.00459260
dec eax
test eax, eax
jl 0x4db476
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
mov edx, dword [ebp - 0x20]
call fcn.00459270
call fcn.004db270
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
pop edx
call fcn.004595dc
inc dword [ebp - 0x20]
dec dword [ebp - 0x3c]
jne 0x4db440
inc ebx
dec esi
jne 0x4db3e9
mov eax, dword [0x660138]
mov eax, dword [eax]
mov edx, dword [eax + 0xe0]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 0xe4]
mov dword [ebp - 0x2c], edx
mov eax, dword [0x660138]
mov eax, dword [eax]
xor edx, edx
mov dword [eax + 0xe0], edx
mov dword [eax + 0xe4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4db531
xor eax, eax
push ebp
push 0x4db52a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3a9c0]
mov ecx, 0xea60
mov eax, dword [ebp - 4]
call fcn.004db1a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x3aaf0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x3aaf0]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x34]
call fcn.00404b60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db56b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x44]
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.004da8a0
mov dword [ebp - 0x3a9c0], eax
lea edx, [ebp - 0x3aaf4]
mov eax, dword [ebp - 4]
call fcn.004dc720
mov ecx, dword [ebp - 0x3aaf4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x34]
call fcn.00404b60
mov dword [ebp - 0x1c], 1
xor eax, eax
push ebp
push 0x4db9bd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [0x6603e8]
push eax
lea eax, [ebp - 0x3a9c0]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.004daf18
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0x28]
mov ebx, eax
mov eax, ebx
call fcn.00418d70
test al, al
je 0x4db96f
mov eax, dword [ebp - 4]
add eax, 0x5c
call fcn.004067c4
push eax
mov eax, dword [0x660240]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax]
test eax, eax
je 0x4db5df
mov eax, dword [ebp - 4]
add eax, 0x5c
call fcn.004067c4
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x34]
test eax, eax
je 0x4db956
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x60], edx
mov ebx, 4
mov eax, dword [ebp - 4]
cmp word [eax + 0x202], 0
je 0x4db60d
add ebx, 0x10
push ebx
push 0x7fff
push 1
push 0
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x34]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov ebx, eax
mov eax, ebx
call fcn.00418d70
test al, al
je 0x4db956
cmp dword [ebp - 0x10], 0
je 0x4db656
mov eax, dword [ebp - 0x10]
cmp word [eax + 0x72], 0
je 0x4db656
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x74]
call dword [ebx + 0x70]
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00450aa0
push eax
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x102
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x34]
push eax
call sub.user32.dll_TrackPopupMenu
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
call fcn.00459260
mov esi, eax
dec esi
test esi, esi
jl 0x4db7ce
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
mov ax, word [eax + 0x50]
cmp ax, word [ebp - 0x16]
jne 0x4db6fc
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
cmp word [eax + 0x8a], 0
je 0x4db6fc
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
mov edi, eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
mov edx, eax
mov eax, dword [edi + 0x8c]
call dword [edi + 0x88]
mov word [ebp - 0x16], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
call fcn.00459260
test eax, eax
jle 0x4db7c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
call fcn.00459260
dec eax
test eax, eax
jl 0x4db7c6
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
mov edx, dword [ebp - 0x20]
call fcn.00459270
mov ax, word [eax + 0x50]
cmp ax, word [ebp - 0x16]
jne 0x4db7ba
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
mov edx, dword [ebp - 0x20]
call fcn.00459270
cmp word [eax + 0x8a], 0
je 0x4db7ba
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
mov edx, dword [ebp - 0x20]
call fcn.00459270
mov edi, eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
mov edx, ebx
call fcn.00459270
mov edx, dword [ebp - 0x20]
call fcn.00459270
mov edx, eax
mov eax, dword [edi + 0x8c]
call dword [edi + 0x88]
mov word [ebp - 0x16], 0
inc dword [ebp - 0x20]
dec dword [ebp - 0x3c]
jne 0x4db73c
inc ebx
dec esi
jne 0x4db69e
cmp word [ebp - 0x16], 0
jbe 0x4db956
push 0x104
lea eax, [ebp - 0x3aae9]
push eax
push 0
push 0
movzx eax, word [ebp - 0x16]
dec eax
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x3aae9]
call fcn.00404a4c
mov eax, dword [ebp - 4]
cmp word [eax + 0x212], 0
je 0x4db82c
lea ecx, [ebp - 0x35]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x214]
call dword [ebx + 0x210]
jmp 0x4db87a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x21d], 0
je 0x4db875
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, 0x4dba40
call fcn.00409138
test eax, eax
je 0x4db871
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, 0x4dba50
call fcn.00409138
test eax, eax
je 0x4db871
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, 0x4dba5c
call fcn.00409138
test eax, eax
jne 0x4db875
xor eax, eax
jmp 0x4db877
mov al, 1
mov byte [ebp - 0x35], al
cmp byte [ebp - 0x35], 0
je 0x4db94e
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, 0x4dba6c
call fcn.00409138
test eax, eax
jne 0x4db8d2
mov eax, dword [ebp - 4]
cmp word [eax + 0x202], 0
je 0x4db8d2
cmp byte [ebp - 0x35], 0
je 0x4db8d2
mov eax, dword [ebp - 4]
cmp word [eax + 0x202], 0
je 0x4db956
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x204]
call dword [ebx + 0x200]
jmp 0x4db956
mov dword [ebp - 0x3a9e4], 0x24
xor eax, eax
mov dword [ebp - 0x3a9e0], eax
mov eax, dword [ebp - 4]
call fcn.004daf18
mov dword [ebp - 0x3a9dc], eax
movzx eax, word [ebp - 0x16]
dec eax
mov dword [ebp - 0x3a9d8], eax
xor eax, eax
mov dword [ebp - 0x3a9c8], eax
xor eax, eax
mov dword [ebp - 0x3a9c4], eax
mov dword [ebp - 0x3a9cc], 1
xor eax, eax
mov dword [ebp - 0x3a9d4], eax
xor eax, eax
mov dword [ebp - 0x3a9d0], eax
lea eax, [ebp - 0x3a9e4]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, eax
mov eax, ebx
call fcn.00418d70
test al, al
jne 0x4db956
mov eax, dword [ebp + 8]
call fcn.0040485c
jmp 0x4db956
mov eax, dword [ebp + 8]
call fcn.0040485c
mov eax, dword [0x660138]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0xe0], edx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0xe4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db9c4
mov dl, 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [ebp - 4]
add eax, 0x5c
call fcn.004067c4
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x60], edx
mov esi, dword [ebp - 0x1c]
dec esi
test esi, esi
jl 0x4db9bc
inc esi
lea ebx, [ebp - 0x3a9c0]
mov eax, dword [ebx]
push eax
mov eax, dword [0x6643a4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
add ebx, 4
dec esi
jne 0x4db9a8
ret