Function at 0x527a70
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov esi, ecx
call fcn.005281a0
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x527946
mov edx, dword [esi + 0x30]
sub edx, eax
sar edx, 2
cmp ecx, edx
jae 0x527946
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 4]
mov ebx, dword [ecx]
mov ecx, dword [ebx + 0x30]
add eax, 8
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x2c]
sub edx, eax
mov eax, dword [0x64b3a0]
sub edi, ecx
mov ecx, dword [ebx + 0x1c]
shl ecx, 4
mov al, byte [ecx + eax + 1]
neg al
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edi
sbb eax, eax
and eax, 3
add eax, 5
mov ecx, eax
dec eax
test ecx, ecx
je 0x52793a
lea ecx, [eax*8 + 0x681398]
inc eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jmp 0x527836
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov ebx, dword [ebp - 0x28]
push ebx
add ecx, edi
push ecx
add eax, edx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00527c50
mov edi, dword [eax]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [esi + 0x10]
imul eax, ecx
mov ecx, dword [esi + 8]
add eax, edx
imul eax, dword [esi + 0xc]
add eax, edi
lea eax, [eax + eax*2]
shl eax, 4
add eax, ecx
mov ecx, dword [eax + 0x28]
mov ebx, ecx
shr ebx, 0x16
test bl, 1
jne 0x52791f
test ecx, 0x2000000
je 0x52791f
mov ebx, dword [eax + 0x24]
and ebx, 0x3f
cmp bl, 9
je 0x52791f
test byte [eax + 0x2c], 1
jne 0x5278af
and ecx, 0xf7ffffff
or ecx, 0x4000000
mov dword [eax + 0x28], ecx
lea eax, [edi + 1]
lea ebx, [edi - 1]
cmp ebx, eax
mov dword [ebp - 0x24], eax
jg 0x52791f
lea ecx, [edx - 1]
inc edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], edx
mov edi, dword [ebp - 0x14]
cmp edi, edx
jg 0x52791a
mov ecx, dword [esi + 8]
mov eax, edi
imul eax, dword [esi + 0xc]
add eax, ebx
lea eax, [eax + eax*2]
shl eax, 4
add eax, ecx
mov ecx, dword [eax + 0x28]
test ecx, 0x2000000
je 0x52790f
mov edx, dword [eax + 0x24]
and edx, 0x3f
cmp dl, 9
je 0x52790f
mov edx, ecx
shr edx, 0x16
test dl, 1
jne 0x52790f
test byte [eax + 0x2c], 1
jne 0x52790f
and ecx, 0xf7ffffff
mov dword [eax + 0x28], ecx
mov edx, dword [ebp - 0x1c]
inc edi
cmp edi, edx
jle 0x5278cd
mov eax, dword [ebp - 0x24]
inc ebx
cmp ebx, eax
jle 0x5278c6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
dec eax
sub ecx, 8
test eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
ja 0x527830
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
jmp 0x5277b8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x3c]
test ecx, ecx
jne 0x52795a
xor eax, eax
jmp 0x527965
mov eax, dword [esi + 0x40]
sub eax, ecx
sar eax, 3
mov dword [ebp - 4], eax
mov edx, eax
dec eax
test edx, edx
mov dword [ebp - 4], eax
je 0x527a16
jmp 0x527978
mov eax, dword [ebp - 4]
lea edi, [eax*8]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + edi]
add eax, edi
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
imul eax, dword [esi + 0xc]
add eax, ecx
lea edx, [eax + eax*2]
mov eax, dword [esi + 8]
shl edx, 4
mov edx, dword [edx + eax + 0x28]
shr edx, 0x1a
test dl, 1
je 0x5279c9
mov eax, dword [ebp - 0x2c]
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0x10]
mov dword [edx + 4], eax
xor eax, eax
push ecx
mov ecx, esi
mov dword [edx + 8], eax
call fcn.00527c70
test al, al
jne 0x527a05
add edi, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov eax, edi
add eax, 8
cmp eax, edx
je 0x5279ef
lea ecx, [eax - 8]
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
add eax, 8
add ecx, 8
cmp eax, edx
jne 0x5279db
mov eax, dword [esi + 0x40]
lea edi, [esi + 0x38]
push eax
add eax, 0xfffffff8
push eax
mov ecx, edi
call fcn.00404190
add dword [edi + 8], 0xfffffff8
mov eax, dword [ebp - 4]
mov edx, eax
dec eax
test edx, edx
mov dword [ebp - 4], eax
jne 0x527975
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x527a2a
mov ecx, dword [esi + 0x40]
sub ecx, eax
test ecx, 0xfffffff8
jne 0x527a35
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x527a40
xor edi, edi
jmp 0x527a48
mov edi, dword [esi + 0x40]
sub edi, eax
sar edi, 3
call fcn.006053cc
xor edx, edx
div edi
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + edx*8 + 4]
mov edi, dword [eax + edx*8]
mov dword [ebp - 0x1c], ecx
lea ecx, [esi + 0x28]
lea eax, [eax + edx*8]
mov edx, dword [ebp + 8]
lea eax, [ebp + 8]
mov dword [ebp + 8], edx
mov edx, dword [ecx + 8]
push eax
push edx
call fcn.0053e500
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edi
xor eax, eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00524970
mov eax, dword [ebx + 0x2c]
mov ebx, dword [ebx + 0x30]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
sub edi, eax
sub dword [ebp - 0x1c], ebx
mov eax, dword [edx + 0x1c]
mov edx, 0x681398
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], eax
mov dword [ebp + 8], 0
mov dword [ebp - 4], edx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
lea ebx, [eax + edi]
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x14], eax
imul eax, dword [esi + 0xc]
add eax, ebx
lea eax, [eax + eax*2]
shl eax, 4
add eax, ecx
mov ecx, dword [eax + 0x28]
test ecx, 0x2000000
je 0x527bdd
mov edx, dword [eax + 0x24]
and edx, 0x3f
cmp dl, 9
je 0x527bda
cmp dword [ebp - 0x24], 9
jne 0x527b0f
mov edx, ecx
shr edx, 0x1a
test dl, 1
jne 0x527bda
test byte [eax + 0x2c], 1
jne 0x527b24
and ecx, 0xfbffffff
or ecx, 0x8000000
mov dword [eax + 0x28], ecx
mov eax, dword [ebp + 8]
test al, 1
je 0x527b38
lea edi, [eax - 1]
and edi, 7
mov eax, 3
jmp 0x527b3f
mov edi, eax
mov eax, 1
mov ecx, eax
dec eax
test ecx, ecx
je 0x527bd7
inc eax
mov dword [ebp - 0x10], eax
mov ecx, dword [edi*8 + 0x681398]
mov eax, dword [edi*8 + 0x68139c]
mov edx, dword [ebp - 0x14]
add ecx, ebx
add edx, eax
test ecx, ecx
jl 0x527bc6
mov eax, dword [esi + 0xc]
cmp ecx, eax
jge 0x527bc6
test edx, edx
jl 0x527bc6
cmp edx, dword [esi + 0x10]
jge 0x527bc6
imul eax, edx
add eax, ecx
mov ecx, dword [esi + 8]
lea eax, [eax + eax*2]
shl eax, 4
add eax, ecx
mov ecx, dword [eax + 0x28]
mov edx, ecx
shr edx, 0x1a
test dl, 1
jne 0x527bc6
mov edx, ecx
shr edx, 0x1b
test dl, 1
jne 0x527bc6
test ecx, 0x2000000
je 0x527bc6
mov edx, dword [eax + 0x24]
and edx, 0x3f
cmp dl, 9
je 0x527bc6
test byte [eax + 0x2c], 1
jne 0x527bc6
and ecx, 0xfbffffff
or ecx, 0x8000000
mov dword [eax + 0x28], ecx
mov eax, dword [ebp - 0x10]
inc edi
and edi, 7
dec eax
mov dword [ebp - 0x10], eax
jne 0x527b4e
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
add edx, 8
inc ebx
cmp edx, 0x6813d8
mov dword [ebp + 8], ebx
mov dword [ebp - 4], edx
jl 0x527abc
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], edi
mov byte [esi + 0x48], 1
mov edx, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov eax, edx
cmp eax, edx
je 0x527c23
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
add eax, 8
add ecx, 8
cmp eax, edx
jne 0x527c0f
mov edx, dword [esi + 0x40]
mov dword [esi + 0x40], ecx
mov ecx, esi
mov dword [ebp + 8], edx
call fcn.005280b0
mov ecx, esi
call fcn.005281a0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4