Function at 0x4a0660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x90]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x4aa090
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea ecx, [esi + 0x20]
mov dword [ecx + 0x60], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx + 0x50], xmm0
movdqa xmmword [ecx + 0x40], xmm0
movdqa xmmword [ecx + 0x30], xmm0
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
mov dword [esi + 8], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0xc], fcn.00410cd0
mov dword [esi + 0x14], edx
mov dword [eax + 8], 1
lea eax, [esi + 4]
mov dword [eax], edx
push eax
call fcn.0049210a
mov dword [esi + 0x98], 2
lea ecx, [esi + 4]
push 0x684bc0
call fcn.004a5108
mov dword [esi + 0x10], eax
mov al, byte [ebp + 0x14]
lea edx, [esi + 0x84]
lea ecx, [esi + 3]
mov byte [ecx], 0
lea edi, [esi + 0x14]
lea ebx, [esi + 8]
movzx eax, al
push edx
push edi
push ebx
push dword [esi + 0x10]
push ecx
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push dword [ecx + 4]
lea ecx, [esi + 4]
push ecx
push eax
push dword [esi + 0x1c]
lea eax, [ebp + 0xc]
push eax
call fcn.0049f980
add esp, 0x2c
test al, al
je 0x4a0804
mov ecx, dword [ebp + 0x20]
cmp byte [ecx + 0xb], 0
js 0x4a075e
xor eax, eax
mov byte [ecx], al
mov byte [ecx + 0xb], al
jmp 0x4a076a
mov eax, dword [ecx]
mov byte [eax], 0
mov dword [ecx + 4], 0
cmp byte [esi + 3], 0
je 0x4a07a6
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx]
mov edi, dword [eax + 0x1c]
mov dword [esi + 0x98], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov dword [esi + 0x98], 2
mov ecx, ebx
push 0x2d
call edi
movsx eax, al
mov ecx, dword [ebp + 0x20]
push eax
call fcn.004aac84
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx]
mov edi, dword [eax + 0x1c]
mov dword [esi + 0x98], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov dword [esi + 0x98], 2
mov ecx, ebx
push 0x30
call edi
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x14]
lea ecx, [edi - 1]
cmp edx, ecx
jae 0x4a07f0
mov ecx, edx
not ecx
add ecx, edi
lea ebx, [edx + ecx]
cmp byte [edx], al
jne 0x4a07f0
inc edx
dec ecx
jne 0x4a07e6
mov edx, ebx
mov dword [esi + 0x98], 2
mov ecx, dword [ebp + 0x20]
push edi
push edx
call fcn.004a0920
lea eax, [ebp + 0x10]
lea ecx, [ebp + 0xc]
push eax
call fcn.00441d50
mov ecx, dword [ebp + 8]
test al, al
je 0x4a081d
mov eax, dword [ebp + 0x1c]
or byte [eax], 2
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov edi, dword [esi + 4]
xor eax, eax
dec eax
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x4a084c
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov dword [esi + 0x98], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
mov edi, dword [esi + 8]
mov dword [esi + 8], 0
test edi, edi
je 0x4a087d
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x98], 0xffffffff
call dword [section..00cfg]
mov dword [esi + 0x98], 0
push edi
call ecx
add esp, 4
mov eax, dword [esi + 0x90]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c