Function at 0x50ff30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60887f
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x6a1450]
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 0x50ff8f
lea eax, [esi - 1]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
jne 0x50ffb4
sub eax, 4
dec esi
jne 0x50ff84
call fcn.0050ba10
push eax
mov ecx, edi
call fcn.00506530
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 0x50ff8f
lea ecx, [ecx + esi*4]
add ecx, 0xfffffffc
call fcn.004da440
lea ecx, [esi - 1]
mov ebx, eax
shl ecx, 5
add ebx, ecx
je 0x50ff8f
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x74]
push esi
call fcn.0050ad10
push esi
push dword [ebp + 8]
lea eax, [esp + 0x20]
mov dword [esp + 0xf0], 0
push eax
call fcn.004dea90
add esp, 0xc
push eax
lea eax, [esp + 0x4c]
mov byte [esp + 0xec], 1
push eax
lea ecx, [esp + 0x7c]
call fcn.004df3e0
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 0x51003b
call fcn.005ffcb8
jmp 0x510040
call fcn.005ca27a
add esp, 4
call fcn.0050ba10
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x7c]
call fcn.004df3e0
lea eax, [esp + 0x48]
mov byte [esp + 0xe8], 4
push eax
lea ecx, [esp + 0x38]
call fcn.00506530
lea eax, [esp + 0x5c]
mov byte [esp + 0xe8], 5
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x7c]
call fcn.0050af10
push eax
lea ecx, [esp + 0x7c]
call fcn.0050a7d0
push eax
lea ecx, [esp + 0x1c]
call fcn.00506530
mov byte [esp + 0xe8], 6
dec ebx
je 0x510188
jmp 0x5100b0
mov eax, dword [esp + 0x2c]
dec ebx
mov edx, ebx
shr edx, 5
cmp edx, dword [eax + 8]
jae 0x510126
mov eax, dword [eax + 0xc]
mov ecx, ebx
and ecx, 0x1f
mov eax, dword [eax + edx*4]
shr eax, cl
and al, 1
je 0x510126
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.0050ae80
add esp, 4
lea ecx, [esp + 0x78]
push eax
call fcn.0050a7d0
push eax
lea ecx, [esp + 0x38]
call fcn.005068c0
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x7c]
call fcn.0050af10
push eax
lea ecx, [esp + 0x7c]
call fcn.0050a7d0
lea ecx, [esp + 0x18]
jmp 0x51017a
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.0050ae80
add esp, 4
lea ecx, [esp + 0x78]
push eax
call fcn.0050a7d0
push eax
lea ecx, [esp + 0x1c]
call fcn.005068c0
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x7c]
call fcn.0050af10
push eax
lea ecx, [esp + 0x7c]
call fcn.0050a7d0
lea ecx, [esp + 0x34]
push eax
call fcn.005068c0
test ebx, ebx
jne 0x5100b0
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x34]
push eax
push ebx
lea ecx, [esp + 0x7c]
call fcn.0050af90
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 0x5101bf
call fcn.005ffcb8
jmp 0x5101c4
call fcn.005ca27a
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 0x5101eb
call fcn.005ffcb8
jmp 0x5101f0
call fcn.005ca27a
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 0x510217
call fcn.005ffcb8
jmp 0x51021c
call fcn.005ca27a
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 0x510265
call fcn.005ffcb8
add esp, 4
lea ecx, [esp + 0x74]
call fcn.004df6a0
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.005ca27a
add esp, 4
lea ecx, [esp + 0x74]
call fcn.004df6a0
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