Function at 0x52cfe2
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor esi, esi
mov ebx, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ebx
dec eax
je 0x52d3e6
dec eax
je 0x52d3a3
dec eax
je 0x52d2d6
dec eax
je 0x52d246
dec eax
je 0x52d1f2
sub eax, 3
je 0x52d033
mov esi, 0xc000000d
jmp 0x52d447
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x18]
cmp eax, 0x22
jb 0x52d029
cmp eax, ecx
jbe 0x52d029
xor edx, edx
push 0x1e
pop esi
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x52d0f6
sub eax, ecx
lea esi, [ecx + edi]
cmp dword [esi], 3
mov dword [esp + 0x10], eax
jne 0x52d029
cmp eax, 0x2e
jb 0x52d029
mov edx, dword [esi + 0x14]
mov edi, dword [edx + esi]
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x18], edi
cmp edi, 2
mov edi, dword [ebp + 8]
jne 0x52d0b1
cmp ecx, 0x16
jb 0x52d029
lea eax, [esi + 0x14]
add eax, edx
push eax
call fcn.0052e80a
test eax, eax
je 0x52d0c7
push eax
mov eax, dword fs:[0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [fcn.0042a514]
mov esi, 0xc00000bb
mov ebx, dword [esp + 0xc]
jmp 0x52d428
cmp dword [esp + 0x18], 8
jne 0x52d029
cmp ecx, 0x22
jb 0x52d029
jmp 0x52d0cb
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
xor ecx, ecx
push ecx
push eax
push esi
call fcn.0052cfe2
mov esi, eax
test esi, esi
js 0x52d426
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
mov dword [esp + 0x18], 0x28
add esi, 0x46
cmp dword [edi + 0x14], 1
jne 0x52d116
lea ecx, [edi + 0x20]
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x52d104
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
push esi
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [0x42a510]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x52d13d
mov esi, 0xc000009a
jmp 0x52d426
push esi
xor eax, eax
push eax
push ebx
call fcn.0053856a
mov dword [ebx], 8
mov dword [ebx + 8], esi
xor esi, esi
add esp, 0xc
cmp dword [edi + 0x14], esi
jne 0x52d168
mov dword [ebx + 0x10], esi
mov eax, dword [edi + 0x1c]
push 0x1e
mov dword [ebx + 0x14], eax
pop esi
jmp 0x52d1b0
add edi, 0x20
mov ecx, edi
mov dword [ebx + 0x10], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x52d177
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push edi
push eax
lea eax, [ebx + 0x1c]
push eax
call fcn.00537c9f
add esp, 0xc
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x52d19a
sub edi, ecx
sar edi, 1
lea esi, [edi*2 + 0x1e]
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x52d1eb
mov edx, dword [esp + 0x18]
lea ecx, [esi + ebx]
mov dword [ecx], edi
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
add eax, edx
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 6
mov eax, dword [esp + 0x14]
push dword [eax + 8]
push eax
lea eax, [ecx + edx]
push eax
call fcn.0053855e
add esp, 0xc
mov dword [ebx + 0x18], esi
mov esi, edi
jmp 0x52d428
add edi, 0x14
cmp dword [ebp + 0xc], 0x15
jb 0x52d029
cmp dword [ebp + 0xc], 0x20
jb 0x52d029
cmp dword [edi + 8], 0x100000
ja 0x52d029
push dword [edi + 8]
mov eax, dword fs:[0x30]
push esi
push dword [eax + 0x18]
call dword [0x42a510]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x52d133
push dword [edi + 8]
push edi
push ebx
call fcn.0053855e
jmp 0x52d423
mov edx, dword [ebp + 0xc]
cmp edx, 0x2e
jb 0x52d029
mov esi, dword [edi + 0x14]
test esi, esi
je 0x52d029
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
sub edx, esi
lea ecx, [esi + edi]
push edx
push ecx
lea edi, [esp + 0x1c]
call fcn.0052d45c
mov esi, eax
test esi, esi
js 0x52d426
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 4]
add edi, 0x28
push edi
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [0x42a510]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x52d338
push edi
xor eax, eax
push eax
push esi
call fcn.0053856a
add esp, 0xc
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0x10], 3
lea eax, [esi + 0x28]
jmp 0x52d376
mov edx, dword [ebp + 0xc]
cmp edx, 0x2e
jb 0x52d029
mov esi, dword [edi + 0x14]
test esi, esi
je 0x52d029
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
sub edx, esi
lea ecx, [esi + edi]
push edx
push ecx
lea edi, [esp + 0x1c]
call fcn.0052d45c
mov esi, eax
test esi, esi
js 0x52d426
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 4]
add edi, 0x14
push edi
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [0x42a510]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
jne 0x52d358
push dword [esp + 0x10]
mov eax, dword fs:[0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [fcn.0042a514]
mov esi, 0xc000009a
jmp 0x52d0a8
push edi
xor eax, eax
push eax
push esi
call fcn.0053856a
add esp, 0xc
xor eax, eax
mov dword [esi], eax
mov dword [esi + 8], edi
mov dword [esi + 0x10], 5
lea eax, [esi + 0x14]
push dword [ebx + 4]
push dword [esp + 0x14]
push eax
call fcn.0053855e
mov eax, dword fs:[0x30]
add esp, 0xc
push dword [esp + 0x10]
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [fcn.0042a514]
mov esi, edi
jmp 0x52d0a8
cmp dword [ebp + 0xc], 0x16
jb 0x52d029
add edi, 0x14
push edi
call fcn.005316be
test al, al
jne 0x52d3c1
mov esi, 0xc00000bb
jmp 0x52d426
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0x10]
mov ecx, edi
call fcn.0052e0b2
mov ebx, dword [esp + 0xc]
mov esi, eax
xor edi, edi
test esi, esi
js 0x52d428
jmp 0x52d1eb
cmp dword [ebp + 0xc], 0x14
jb 0x52d029
mov eax, dword fs:[0x30]
push 0x48
pop edi
push edi
push esi
push dword [eax + 0x18]
call dword [0x42a510]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x52d133
push edi
push esi
push ebx
call fcn.0053856a
mov dword [ebx], 5
mov dword [ebx + 8], edi
add esp, 0xc
xor edi, edi
cmp dword [esp + 0x14], 0
je 0x52d447
push dword [esp + 0x14]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [fcn.0042a514]
mov ebx, dword [esp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10