Function at 0x4e6580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4e6589
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4e6813
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4e677d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
cmp word [eax + 0x352], 0
je 0x4e6771
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4e676a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0xc]
call fcn.004bf538
lea eax, [ebp - 0x1c]
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x10]
call fcn.004bf538
lea eax, [ebp - 0x20]
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x14]
call fcn.004bf538
lea eax, [ebp - 0x24]
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x28]
call fcn.004bf538
lea eax, [ebp - 0x28]
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x30]
call fcn.004bf538
lea eax, [ebp - 4]
call fcn.00409554
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x18]
call fcn.004bf538
lea eax, [ebp - 8]
call fcn.00409554
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x1c]
call fcn.004bf538
lea eax, [ebp - 0xc]
call fcn.00409554
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x20]
call fcn.004bf538
mov eax, dword [ebp - 0x24]
call fcn.004d23d8
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0x28]
call fcn.004d23d8
mov byte [ebp - 0x2a], al
cmp dword [ebp - 0xc], 0
je 0x4e66a3
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4d7f2c]
call fcn.004d7ffc
mov edx, eax
test edx, edx
je 0x4e6696
sub edx, 0xfffffff8
lea eax, [ebp - 0x10]
mov ecx, 0x4e6824
call fcn.00409598
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
call fcn.004d23d8
push eax
lea eax, [ebp - 0x29]
push eax
lea eax, [ebp - 0x2a]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004d24cc
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.004d833c
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x18]
call fcn.00406a70
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x354]
call dword [esi + 0x350]
movzx eax, byte [ebp - 0x29]
call fcn.004d23e0
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x2c]
call fcn.004bf538
movzx eax, byte [ebp - 0x2a]
call fcn.004d23e0
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x34]
call fcn.004bf538
cmp dword [ebp - 0x10], 0
jne 0x4e6739
push 0
push ebx
mov eax, dword [ebx]
call dword [eax + 0x24]
call fcn.004bf538
jmp 0x4e6753
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x3c]
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x24]
call fcn.004bf538
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6771
mov eax, dword [ebp - 0x18]
push eax
call sub.ole32.dll_CoTaskMemFree
ret
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e67b9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e681a
lea eax, [ebp - 0x3c]
call fcn.00409554
lea eax, [ebp - 0x38]
call fcn.004068b4
lea eax, [ebp - 0x34]
mov edx, dword [0x4c29f8]
call fcn.004081c8
lea eax, [ebp - 0x30]
mov edx, dword [0x4c0088]
call fcn.004081c8
lea eax, [ebp - 0x10]
call fcn.00409554
lea eax, [ebp - 0xc]
call fcn.00409554
lea eax, [ebp - 8]
call fcn.00409554
lea eax, [ebp - 4]
call fcn.00409554
ret