Function at 0x517d80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x61a4bf
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x6b64f0]
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 0x517ddf
lea eax, [esi - 1]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
jne 0x517e04
sub eax, 4
dec esi
jne 0x517dd4
call fcn.00513df0
push eax
mov ecx, edi
call fcn.0050e910
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 0x517ddf
lea ecx, [ecx + esi*4]
add ecx, 0xfffffffc
call fcn.004e2930
lea ecx, [esi - 1]
mov ebx, eax
shl ecx, 5
add ebx, ecx
je 0x517ddf
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x74]
push esi
call fcn.005130f0
push esi
push dword [ebp + 8]
lea eax, [esp + 0x20]
mov dword [esp + 0xf0], 0
push eax
call fcn.004e7100
add esp, 0xc
push eax
lea eax, [esp + 0x4c]
mov byte [esp + 0xec], 1
push eax
lea ecx, [esp + 0x7c]
call fcn.004e7a50
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 0x517e8b
call fcn.00610971
jmp 0x517e90
call fcn.005d9065
add esp, 4
call fcn.00513df0
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x7c]
call fcn.004e7a50
lea eax, [esp + 0x48]
mov byte [esp + 0xe8], 4
push eax
lea ecx, [esp + 0x38]
call fcn.0050e910
lea eax, [esp + 0x5c]
mov byte [esp + 0xe8], 5
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x7c]
call fcn.005132f0
push eax
lea ecx, [esp + 0x7c]
call fcn.00512bb0
push eax
lea ecx, [esp + 0x1c]
call fcn.0050e910
mov byte [esp + 0xe8], 6
dec ebx
je 0x517fd8
jmp 0x517f00
mov eax, dword [esp + 0x2c]
dec ebx
mov edx, ebx
shr edx, 5
cmp edx, dword [eax + 8]
jae 0x517f76
mov eax, dword [eax + 0xc]
mov ecx, ebx
and ecx, 0x1f
mov eax, dword [eax + edx*4]
shr eax, cl
and al, 1
je 0x517f76
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.00513260
add esp, 4
lea ecx, [esp + 0x78]
push eax
call fcn.00512bb0
push eax
lea ecx, [esp + 0x38]
call fcn.0050eca0
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x7c]
call fcn.005132f0
push eax
lea ecx, [esp + 0x7c]
call fcn.00512bb0
lea ecx, [esp + 0x18]
jmp 0x517fca
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.00513260
add esp, 4
lea ecx, [esp + 0x78]
push eax
call fcn.00512bb0
push eax
lea ecx, [esp + 0x1c]
call fcn.0050eca0
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x7c]
call fcn.005132f0
push eax
lea ecx, [esp + 0x7c]
call fcn.00512bb0
lea ecx, [esp + 0x34]
push eax
call fcn.0050eca0
test ebx, ebx
jne 0x517f00
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x34]
push eax
push ebx
lea ecx, [esp + 0x7c]
call fcn.00513370
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 0x51800f
call fcn.00610971
jmp 0x518014
call fcn.005d9065
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 0x51803b
call fcn.00610971
jmp 0x518040
call fcn.005d9065
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 0x518067
call fcn.00610971
jmp 0x51806c
call fcn.005d9065
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 0x5180b5
call fcn.00610971
add esp, 4
lea ecx, [esp + 0x74]
call fcn.004e7d10
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.005d9065
add esp, 4
lea ecx, [esp + 0x74]
call fcn.004e7d10
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