Function at 0x52021f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4dd721
call 0x575ad8
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00523840
push 0x20
lea edi, [ebx + 0x2e8]
pop ecx
xor esi, esi
push 0xffffffffffffff9d
pop eax
rep stosd dword es:[edi], eax
mov ecx, ebx
mov dword [ebx + 0x368], esi
call fcn.00521446
push 0x44
mov dword [ebx + 4], 0x78
mov dword [ebx + 0x36c], esi
mov dword [ebx + 0x2e0], esi
call 0x58c41a
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x520281
mov ecx, eax
call fcn.00513473
mov esi, eax
or dword [ebp - 4], 0xffffffff
push ecx
mov edi, esp
mov dword [ebp - 0x2c], esp
push ecx
mov dword [esi + 8], 0xcb
mov ecx, esp
mov dword [ebp - 0x2c], esp
push fcn.005155c8
call 0x58d204
lea ecx, [ebx + 0x1a8]
push edi
call 0x54d20a
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0051c398
push 1
lea ecx, [esi + 0x30]
pop edi
push eax
mov dword [ebp - 4], edi
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call 0x58d196
and dword [esi + 0x2c], 0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov eax, dword [ebx + 0x36c]
and dword [esi + 0x34], 0
lea ecx, [ebx + 0x14]
push esi
mov dword [esi + 0x14], eax
call 0x58bba8
inc dword [ebx + 0x36c]
lea eax, [ebx + 0x374]
mov dword [ebp - 0x14], 0x335
mov dword [ebp - 0x10], eax
push 0x44
call 0x58c41a
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
mov dword [ebp - 4], 2
je 0x52032b
mov ecx, eax
call fcn.00513473
mov esi, eax
jmp 0x52032d
xor esi, esi
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add eax, 0xfffffd9e
push ecx
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
add eax, 0xfffffffc
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call 0x58cf0b
push edi
lea ecx, [ebx + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0051c398
push eax
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call 0x58d196
xor edi, edi
push esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x2c], edi
mov eax, dword [ebx + 0x36c]
lea ecx, [ebx + 0x14]
mov dword [esi + 0x14], eax
call 0x58bba8
inc dword [ebx + 0x36c]
push 0x70
call 0x58c41a
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, edi
mov dword [ebp - 4], 4
je 0x5203cb
mov ecx, eax
call fcn.0050d84b
mov esi, eax
jmp 0x5203cd
xor esi, esi
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
push ecx
mov dword [esi + 8], eax
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x10]
call 0x58cf0b
push edi
lea ecx, [ebx + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.0051c398
push eax
lea ecx, [esi + 0x5c]
mov dword [ebp - 4], 5
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call 0x58d196
xor eax, eax
push ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
add eax, 0xc
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call 0x58cf0b
push edi
lea ecx, [ebx + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.0051c398
push eax
lea ecx, [esi + 0x44]
mov dword [ebp - 4], 6
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call 0x58d196
mov eax, dword [ebp - 0x10]
push ecx
mov edi, esp
mov dword [ebp - 0x18], esp
push ecx
add eax, 0x10
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call 0x58cf0b
push edi
lea ecx, [ebx + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.0051c398
mov dword [ebp - 4], 7
push eax
lea ecx, [esi + 0x48]
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call 0x58d196
mov eax, dword [ebp - 0x10]
and dword [esi + 0x50], 0
push 1
add eax, 8
pop edi
lea ecx, [esi + 0x68]
push eax
mov dword [esi + 0x4c], edi
call 0x58d2cf
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], 4
mov eax, dword [ebx + 0x36c]
lea ecx, [ebx + 0x14]
push esi
mov dword [esi + 0x14], eax
mov dword [ebp - 0x18], ecx
call 0x58bba8
inc dword [ebx + 0x36c]
push 0x40
call 0x58c41a
pop ecx
mov dword [ebp - 0x30], eax
test eax, eax
mov dword [ebp - 4], 8
je 0x52052d
mov ecx, eax
call fcn.0050b99b
mov esi, eax
jmp 0x52052f
xor esi, esi
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add eax, 0xfffffd44
push ecx
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x30], esp
push ecx
add eax, 4
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call 0x58cf0b
push edi
lea ecx, [ebx + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.0051c398
push eax
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 9
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call 0x58d196
and dword [esi + 0xc], 0
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x10], 1
mov eax, dword [ebx + 0x36c]
push esi
mov dword [esi + 0x14], eax
call 0x58bba8
inc dword [ebx + 0x36c]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], 0x18
add eax, 0xfffffccb
cmp eax, 0x20
jl 0x52030a
push 0x44
call 0x58c41a
pop ecx
mov dword [ebp - 0x30], eax
test eax, eax
mov dword [ebp - 4], 0xa
je 0x5205e5
mov ecx, eax
call fcn.00513473
mov esi, eax
jmp 0x5205e7
xor esi, esi
or dword [ebp - 4], 0xffffffff
push ecx
mov edi, esp
mov dword [ebp - 0x30], esp
push ecx
mov dword [esi + 8], 0xcc
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x5155a0
call 0x58d204
push edi
lea ecx, [ebx + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0051c398
push eax
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 0xb
call 0x58d2cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call 0x58d196
and dword [esi + 0x2c], 0
mov ecx, dword [ebp - 0x18]
push 1
pop eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x36c]
and dword [esi + 0x34], 0
push esi
mov dword [esi + 0x14], eax
call 0x58bba8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret