Function at 0x522a40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, esp
mov dword [esi + 0x98], ebp
mov edi, dword [ebp + 0x14]
lea ecx, [esi + 0xa0]
mov dword [ecx - 4], esp
xor eax, eax
dec eax
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0x4673c0
mov edx, dword fs:[0]
mov dword [ecx], edx
mov edx, dword [ebp + 0x10]
mov dword fs:[0], ecx
mov ecx, edi
mov edi, edx
sub ecx, edx
sar ecx, 2
imul ecx, ecx, 0xaaaaaaab
mov dword [esi + 0x90], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x80], xmm0
movdqa xmmword [esi + 0x70], xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
movdqa xmmword [esi + 0x40], xmm0
movdqa xmmword [esi + 0x30], xmm0
mov dword [esi + 0x10], 0
cmp ecx, 0x65
mov dword [esi + 0xc], ecx
jb 0x522aee
push ecx
call fcn.004c3520
add esp, 4
mov ebx, eax
mov dword [esi + 4], eax
test eax, eax
jne 0x522af8
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xa8], eax
call fcn.00534440
lea ebx, [esi + 0x30]
mov dword [esi + 4], 0
mov ecx, dword [ebp + 0x14]
cmp edi, ecx
mov dword [esi + 0x14], ebx
je 0x522b3a
mov dword [esi + 0x10], 0
cmp byte [edi + 0xb], 0
js 0x522b2a
mov ecx, edi
call fcn.004ab0e0
mov ecx, dword [ebp + 0x14]
test eax, eax
je 0x522b2f
mov byte [ebx], 1
add edi, 0xc
inc ebx
cmp edi, ecx
jne 0x522b09
jmp 0x522b3a
mov eax, dword [edi + 4]
jmp 0x522b19
mov byte [ebx], 2
dec dword [esi + 0xc]
inc dword [esi + 0x10]
jmp 0x522b20
mov dword [esi + 0xa8], 0
xor ebx, ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xa8], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.004ab6d0
mov ecx, dword [ebp + 0x14]
test al, al
jne 0x522d82
cmp dword [esi + 0xc], 0
je 0x522d82
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x522d12
mov al, byte [eax]
mov dword [esi + 0x18], eax
cmp byte [ebp + 0x20], 0
jne 0x522bcf
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov dword [esi + 0xa8], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xa8], 0
movsx eax, byte [esi + 0x18]
mov ecx, ebx
push eax
call edi
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x1c]
lea edi, [ebx + 1]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], 0
mov edi, edx
cmp eax, ecx
je 0x522c99
cmp byte [edi], 1
je 0x522bfa
add eax, 0xc
inc edi
jmp 0x522be7
mov dword [esi + 0x20], eax
mov ecx, eax
push ebx
call fcn.004ac520
mov bl, byte [eax]
cmp byte [ebp + 0x20], 0
je 0x522c12
mov ecx, dword [ebp + 0x14]
jmp 0x522c50
mov dword [esi + 0x2c], edi
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov dword [esi + 0xa8], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xa8], 0
movsx eax, bl
mov ecx, dword [ebp + 0x18]
push eax
call edi
mov ecx, dword [ebp + 0x14]
mov ebx, eax
mov edi, dword [esi + 0x2c]
mov eax, dword [esi + 0x20]
cmp byte [esi + 0x18], bl
jne 0x522c86
cmp byte [eax + 0xb], 0
mov ebx, dword [esi + 0x1c]
js 0x522c94
mov ecx, eax
call fcn.004ab0e0
mov ecx, dword [ebp + 0x14]
mov dl, 1
mov dword [esi + 0x28], edx
cmp eax, dword [esi + 0x24]
jne 0x522c7e
mov byte [edi], 2
dec dword [esi + 0xc]
inc dword [esi + 0x10]
mov eax, dword [esi + 0x20]
jmp 0x522bf4
mov byte [edi], 0
dec dword [esi + 0xc]
mov ebx, dword [esi + 0x1c]
jmp 0x522bf4
mov eax, dword [eax + 4]
jmp 0x522c6b
mov ebx, dword [esi + 0x24]
test byte [esi + 0x28], 1
je 0x522b46
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x522d4f
inc eax
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
add eax, edx
mov edx, dword [esi + 0x24]
mov ebx, edx
cmp eax, 2
mov edi, dword [ebp + 0x10]
jb 0x522b46
mov ebx, edx
cmp edi, ecx
je 0x522b46
mov ebx, dword [esi + 0x14]
cmp byte [ebx], 2
jne 0x522d03
cmp byte [edi + 0xb], 0
js 0x522d0d
mov ecx, edi
call fcn.004ab0e0
mov edx, dword [esi + 0x24]
mov ecx, dword [ebp + 0x14]
cmp eax, edx
je 0x522d03
mov byte [ebx], 0
dec dword [esi + 0x10]
add edi, 0xc
inc ebx
cmp edi, ecx
jne 0x522ce1
jmp 0x522d48
mov eax, dword [edi + 4]
jmp 0x522cf9
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov dword [esi + 0xa8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xa8], 0
mov ecx, edi
call ebx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
jmp 0x522b90
mov ebx, edx
jmp 0x522b46
mov eax, dword [edi]
mov ebx, dword [eax + 0x24]
mov dword [esi + 0xa8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xa8], 0
mov ecx, edi
call ebx
mov ecx, dword [ebp + 0x14]
jmp 0x522cbb
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.004ab6d0
mov ecx, dword [ebp + 0x14]
test al, al
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x1c]
je 0x522da4
or byte [ebx], 2
cmp eax, ecx
mov edx, dword [esi + 4]
mov edi, dword [esi + 0x14]
je 0x522dbb
cmp byte [edi], 2
je 0x522de5
add eax, 0xc
inc edi
cmp eax, ecx
jne 0x522dae
or byte [ebx], 4
test edx, edx
je 0x522dcf
push edx
mov edi, ecx
call fcn.004c3570
mov ecx, edi
add esp, 4
mov eax, dword [esi + 0xa0]
mov dword fs:[0], eax
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, eax
jmp 0x522dbe