Function at 0x50a750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x602f0f
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x69a450]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov dword [esp + 0x2c], edx
mov edi, ecx
mov dword [esp + 0x30], edi
mov esi, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x70], 0
test esi, esi
je 0x50a7af
lea eax, [esi - 1]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
jne 0x50a7d4
sub eax, 4
dec esi
jne 0x50a7a4
call fcn.00506230
push eax
mov ecx, edi
call fcn.00500d50
mov eax, edi
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x50a7af
lea ecx, [ecx + esi*4]
add ecx, 0xfffffffc
call fcn.004d4950
lea ecx, [esi - 1]
mov ebx, eax
shl ecx, 5
add ebx, ecx
je 0x50a7af
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x74]
push esi
call fcn.00505530
push esi
push dword [ebp + 8]
lea eax, [esp + 0x20]
mov dword [esp + 0xf0], 0
push eax
call fcn.004d9130
add esp, 0xc
push eax
lea eax, [esp + 0x4c]
mov byte [esp + 0xec], 1
push eax
lea ecx, [esp + 0x7c]
call fcn.004d9a80
mov byte [esp + 0xe8], 3
xor eax, eax
mov edx, dword [esp + 0x20]
mov ecx, edx
mov esi, dword [esp + 0x24]
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x50a85b
call fcn.005fa578
jmp 0x50a860
call fcn.005c663b
add esp, 4
call fcn.00506230
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x7c]
call fcn.004d9a80
lea eax, [esp + 0x48]
mov byte [esp + 0xe8], 4
push eax
lea ecx, [esp + 0x38]
call fcn.00500d50
lea eax, [esp + 0x5c]
mov byte [esp + 0xe8], 5
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x7c]
call fcn.00505730
push eax
lea ecx, [esp + 0x7c]
call fcn.00504ff0
push eax
lea ecx, [esp + 0x1c]
call fcn.00500d50
mov byte [esp + 0xe8], 6
dec ebx
je 0x50a9a8
jmp 0x50a8d0
mov eax, dword [esp + 0x2c]
dec ebx
mov edx, ebx
shr edx, 5
cmp edx, dword [eax + 8]
jae 0x50a946
mov eax, dword [eax + 0xc]
mov ecx, ebx
and ecx, 0x1f
mov eax, dword [eax + edx*4]
shr eax, cl
and al, 1
je 0x50a946
lea eax, [esp + 0x48]
push eax
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x84]
call fcn.005056a0
add esp, 4
lea ecx, [esp + 0x78]
push eax
call fcn.00504ff0
push eax
lea ecx, [esp + 0x38]
call fcn.005010e0
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x7c]
call fcn.00505730
push eax
lea ecx, [esp + 0x7c]
call fcn.00504ff0
lea ecx, [esp + 0x18]
jmp 0x50a99a
lea eax, [esp + 0x48]
push eax
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x84]
call fcn.005056a0
add esp, 4
lea ecx, [esp + 0x78]
push eax
call fcn.00504ff0
push eax
lea ecx, [esp + 0x1c]
call fcn.005010e0
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x7c]
call fcn.00505730
push eax
lea ecx, [esp + 0x7c]
call fcn.00504ff0
lea ecx, [esp + 0x34]
push eax
call fcn.005010e0
test ebx, ebx
jne 0x50a8d0
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x34]
push eax
push ebx
lea ecx, [esp + 0x7c]
call fcn.005057b0
mov edx, dword [esp + 0x20]
xor eax, eax
mov esi, dword [esp + 0x24]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x50a9df
call fcn.005fa578
jmp 0x50a9e4
call fcn.005c663b
mov edx, dword [esp + 0x40]
xor eax, eax
mov esi, dword [esp + 0x44]
add esp, 4
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x50aa0b
call fcn.005fa578
jmp 0x50aa10
call fcn.005c663b
mov edx, dword [esp + 0x68]
xor eax, eax
mov esi, dword [esp + 0x6c]
add esp, 4
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x50aa37
call fcn.005fa578
jmp 0x50aa3c
call fcn.005c663b
mov edx, dword [esp + 0x54]
xor eax, eax
mov esi, dword [esp + 0x58]
add esp, 4
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x50aa85
call fcn.005fa578
add esp, 4
lea ecx, [esp + 0x74]
call fcn.004d9d40
mov eax, ebx
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.005c663b
add esp, 4
lea ecx, [esp + 0x74]
call fcn.004d9d40
mov eax, ebx
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret