Function at 0x4c8820
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], 0x41f380
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 0x4c88ce
push ecx
call fcn.00468190
add esp, 4
mov ebx, eax
mov dword [esi + 4], eax
test eax, eax
jne 0x4c88d8
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xa8], eax
call fcn.004da220
lea ebx, [esi + 0x30]
mov dword [esi + 4], 0
mov ecx, dword [ebp + 0x14]
cmp edi, ecx
mov dword [esi + 0x14], ebx
je 0x4c891a
mov dword [esi + 0x10], 0
cmp byte [edi + 0xb], 0
js 0x4c890a
mov ecx, edi
call fcn.0045b580
mov ecx, dword [ebp + 0x14]
test eax, eax
je 0x4c890f
mov byte [ebx], 1
add edi, 0xc
inc ebx
cmp edi, ecx
jne 0x4c88e9
jmp 0x4c891a
mov eax, dword [edi + 4]
jmp 0x4c88f9
mov byte [ebx], 2
dec dword [esi + 0xc]
inc dword [esi + 0x10]
jmp 0x4c8900
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.0045bb70
mov ecx, dword [ebp + 0x14]
test al, al
jne 0x4c8b62
cmp dword [esi + 0xc], 0
je 0x4c8b62
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x4c8af2
mov al, byte [eax]
mov dword [esi + 0x18], eax
cmp byte [ebp + 0x20], 0
jne 0x4c89af
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 0x4c8a79
cmp byte [edi], 1
je 0x4c89da
add eax, 0xc
inc edi
jmp 0x4c89c7
mov dword [esi + 0x20], eax
mov ecx, eax
push ebx
call fcn.0045c400
mov bl, byte [eax]
cmp byte [ebp + 0x20], 0
je 0x4c89f2
mov ecx, dword [ebp + 0x14]
jmp 0x4c8a30
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 0x4c8a66
cmp byte [eax + 0xb], 0
mov ebx, dword [esi + 0x1c]
js 0x4c8a74
mov ecx, eax
call fcn.0045b580
mov ecx, dword [ebp + 0x14]
mov dl, 1
mov dword [esi + 0x28], edx
cmp eax, dword [esi + 0x24]
jne 0x4c8a5e
mov byte [edi], 2
dec dword [esi + 0xc]
inc dword [esi + 0x10]
mov eax, dword [esi + 0x20]
jmp 0x4c89d4
mov byte [edi], 0
dec dword [esi + 0xc]
mov ebx, dword [esi + 0x1c]
jmp 0x4c89d4
mov eax, dword [eax + 4]
jmp 0x4c8a4b
mov ebx, dword [esi + 0x24]
test byte [esi + 0x28], 1
je 0x4c8926
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x4c8b2f
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 0x4c8926
mov ebx, edx
cmp edi, ecx
je 0x4c8926
mov ebx, dword [esi + 0x14]
cmp byte [ebx], 2
jne 0x4c8ae3
cmp byte [edi + 0xb], 0
js 0x4c8aed
mov ecx, edi
call fcn.0045b580
mov edx, dword [esi + 0x24]
mov ecx, dword [ebp + 0x14]
cmp eax, edx
je 0x4c8ae3
mov byte [ebx], 0
dec dword [esi + 0x10]
add edi, 0xc
inc ebx
cmp edi, ecx
jne 0x4c8ac1
jmp 0x4c8b28
mov eax, dword [edi + 4]
jmp 0x4c8ad9
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 0x4c8970
mov ebx, edx
jmp 0x4c8926
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 0x4c8a9b
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0045bb70
mov ecx, dword [ebp + 0x14]
test al, al
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x1c]
je 0x4c8b84
or byte [ebx], 2
cmp eax, ecx
mov edx, dword [esi + 4]
mov edi, dword [esi + 0x14]
je 0x4c8b9b
cmp byte [edi], 2
je 0x4c8bc5
add eax, 0xc
inc edi
cmp eax, ecx
jne 0x4c8b8e
or byte [ebx], 4
test edx, edx
je 0x4c8baf
push edx
mov edi, ecx
call fcn.004681e0
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 0x4c8b9e