Function at 0x526ec0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce162
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x1b4]
mov dword [ebp - 0x14], eax
mov eax, 0x6a5594
sub eax, esi
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 9
jmp 0x526f03
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [eax + ecx]
mov edi, dword [0x6a7208]
mov ecx, dword [edi + 0x20]
sub ecx, dword [edi + 0x1c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x526f63
mov eax, dword [edi + 0x1c]
lea esi, [ebx*8]
sub esi, ebx
add esi, esi
add esi, esi
add esi, esi
mov edx, dword [eax + esi]
xor ecx, ecx
test edx, edx
jle 0x526f60
mov eax, dword [eax + esi + 0x28]
add eax, 0x10
mov edi, edi
mov ebx, dword [eax]
add eax, 0x14
dec edx
lea ecx, [ecx + ebx + 1]
jne 0x526f50
test ecx, ecx
jne 0x526f68
mov esi, dword [ebp - 0x10]
or eax, 0xffffffff
jmp 0x526f9f
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x24]
inc eax
cdq
idiv ecx
xor eax, eax
mov dword [ebx + 0x24], edx
mov ecx, dword [edi + 0x1c]
mov esi, dword [esi + ecx + 0x28]
sub edx, dword [esi + 0x10]
lea ecx, [esi + 0x10]
dec edx
js 0x526f94
add ecx, 0x14
or edi, 0xffffffff
sub edi, dword [ecx]
inc eax
add edx, edi
jns 0x526f87
lea edx, [eax + eax*4]
mov eax, dword [esi + edx*4]
mov eax, dword [eax]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
add ecx, 4
dec dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
jne 0x526f00
mov ecx, dword [esi + 0x294]
test ecx, ecx
je 0x526fc4
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
lea edi, [esi + 0x29c]
mov ebx, 4
nop
mov ecx, dword [edi]
test ecx, ecx
je 0x526fdd
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
add edi, 8
dec ebx
jne 0x526fd0
mov ecx, dword [esi + 0x2c4]
test ecx, ecx
je 0x526ff4
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x2e4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx]
test ecx, ecx
je 0x527019
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
jmp 0x52710d
mov ebx, dword [esi + 0x2cc]
test ebx, ebx
je 0x52710d
mov eax, dword [esi + 0x2c4]
test eax, eax
je 0x52710d
cmp byte [eax + 0x1ac], 0
je 0x52710d
mov eax, dword [ebx + 0x1a4]
mov edi, dword [ebx + 0x1a8]
xor edx, edx
cmp eax, edi
je 0x527078
jmp 0x527060
mov ecx, dword [eax]
cmp byte [ecx + 0x1f1], 0
mov edx, dword [ecx + 0x1e8]
je 0x527078
add eax, 4
cmp eax, edi
jne 0x527060
cmp edx, dword [ebp - 0x14]
jl 0x52710d
mov eax, dword [ebp - 0x14]
push eax
push ebx
call fcn.00517d90
mov edi, eax
test edi, edi
js 0x52710d
push 0x1a4
call fcn.0048f2c5
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x5270bf
mov ecx, dword [esi + 0x2c4]
add edi, 2
push edi
push ecx
push eax
call fcn.0051ad20
jmp 0x5270c1
xor eax, eax
push esi
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00441130
mov edi, dword [ebp - 0x18]
push eax
call fcn.0041a180
mov esi, dword [edi]
mov eax, dword [esi + 0x24]
mov byte [esi + 0x198], 0
mov edx, dword [eax]
cmp edx, eax
je 0x527103
jmp 0x5270f0
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x5270fc
call fcn.00572ed0
mov edx, dword [edx]
cmp edx, dword [esi + 0x24]
jne 0x5270f0
mov esi, dword [ebp - 0x10]
mov byte [0x692c3f], 1
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x18], 8
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 8
jl 0x527004
xor ebx, ebx
xor edi, edi
cmp dword [0x6a5290], ebx
jle 0x52719a
add esi, 0x34c
jmp 0x527140
mov eax, dword [esi]
mov ecx, dword [edi*4 + 0x693c9c]
cmp dword [eax + 0x1a4], ecx
je 0x527182
mov dword [eax + 0x1a4], ecx
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edi*4 + 0x693d1c]
mov edx, dword [edx + 0x34]
push eax
call edx
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [edi*4 + 0x693d9c]
mov eax, dword [eax + 0x38]
push edx
call eax
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
inc edi
add esi, 8
cmp edi, dword [0x6a5290]
jl 0x527140
mov esi, dword [ebp - 0x10]
mov eax, esi
call fcn.00526860
mov eax, dword [esi + 0x268]
cmp eax, ebx
je 0x527207
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x5271c7
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test byte [ebp - 0x18], 5
jne 0x527207
mov dword [esi + 0x268], ebx
mov edi, dword [esi + 0x26c]
mov dword [esi + 0x26c], ebx
cmp edi, ebx
je 0x527207
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x527207
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x527207
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov eax, dword [esi + 0x1a0]
cmp eax, ebx
je 0x527215
mov ecx, esi
call eax
mov ecx, dword [esi + 0x468]
mov edx, dword [esi + 0x464]
cmp ecx, edx
jge 0x52723a
mov eax, dword [esi + 0x46c]
add ecx, eax
dec eax
mov dword [esi + 0x468], ecx
mov dword [esi + 0x46c], eax
mov eax, dword [esi + 0x474]
push edx
mov edx, dword [esi + 0x468]
mov esi, dword [esi + 0x470]
push edx
call fcn.004081d0
mov esi, dword [ebp - 0x10]
lea ecx, [esi + 0x30]
mov dword [esi + 0x11c], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 0x14c], eax
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret