Function at 0x4c8ca0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov esi, esp
mov dword [esi + 0xa8], ebp
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0xb0]
mov dword [ecx - 4], esp
xor eax, eax
dec eax
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0x4d1040
mov edi, dword fs:[0]
mov dword [ecx], edi
mov dword fs:[0], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov dword [esi + 0xa0], eax
mov dword [esi + 0x30], ecx
mov eax, ecx
mov dword [esi + 0x24], edx
sub eax, edx
sar eax, 2
imul ecx, eax, 0xaaaaaaab
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x90], 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
mov dword [esi + 0x18], 0
mov eax, ecx
mov dword [esi + 0xc], ecx
cmp ecx, 0x65
jb 0x4c8d6e
push 0
push dword [esi + 0xc]
push 0x5e3220
call fcn.004eef50
add esp, 0xc
test eax, eax
jne 0x4c8d7d
cmp byte [0x6c0254], 0
je 0x4c8d7d
push dword [esi + 0xc]
call fcn.00587d60
add esp, 4
test al, al
jne 0x4c8d3b
jmp 0x4c9070
lea eax, [esi + 0x40]
mov dword [esi + 0x14], eax
mov dword [esi + 8], 0
jmp 0x4c8d8b
mov dword [esi + 0x14], eax
mov dword [esi + 8], eax
test eax, eax
je 0x4c9070
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
je 0x4c8dc3
mov dword [esi + 0x18], 0
mov ecx, dword [esi + 0x14]
movzx edx, byte [eax + 0xb]
test dl, dl
jns 0x4c8da8
mov edx, dword [eax + 4]
test edx, edx
je 0x4c8db1
mov byte [ecx], 1
jmp 0x4c8dba
mov byte [ecx], 2
dec dword [esi + 0xc]
inc dword [esi + 0x18]
add eax, 0xc
inc ecx
cmp eax, dword [ebp + 0xc]
jne 0x4c8d9d
mov dword [esi + 0xb8], 0
xor ecx, ecx
mov dword [esi + 0x2c], ecx
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0xb8], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esi + 0x38]
push eax
call fcn.00549d50
test al, al
jne 0x4c8ffc
cmp dword [esi + 0xc], 0
je 0x4c8ffc
mov eax, dword [esi + 0x1c]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x4c8e16
movzx eax, word [eax]
mov word [esi + 6], ax
jmp 0x4c8e45
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov dword [esi + 0xb8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0xb8], 0
mov ecx, edi
call ebx
mov word [esi + 6], ax
cmp byte [ebp + 0x18], 0
jne 0x4c8e82
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
mov edi, dword [eax + 0x1c]
mov dword [esi + 0xb8], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0xb8], 0
movzx eax, word [esi + 6]
mov ecx, ebx
push eax
call edi
mov word [esi + 6], ax
mov eax, dword [esi + 0x2c]
lea edx, [eax + 1]
mov dword [esi + 0x34], 0
mov ecx, dword [esi + 0x14]
mov eax, dword [ebp + 8]
mov dword [esi + 0x28], edx
mov dword [esi + 0x20], eax
cmp eax, dword [ebp + 0xc]
je 0x4c8f57
cmp byte [ecx], 1
jne 0x4c8f4b
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x20]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x4c8ec7
mov edi, dword [esi + 0x2c]
cmp edi, eax
jbe 0x4c8ed8
jmp 0x4c9080
mov edi, dword [esi + 0x2c]
cmp dword [ecx + 4], edi
jb 0x4c9080
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
movzx edi, word [ecx + edi*2]
cmp byte [ebp + 0x18], 0
jne 0x4c8f1a
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ebx, dword [eax + 0x1c]
mov dword [esi + 0xb8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0xb8], 0
movzx eax, di
mov ecx, dword [ebp + 0x10]
push eax
call ebx
mov edx, dword [esi + 0x28]
mov edi, eax
cmp word [esi + 6], di
mov ecx, dword [esi + 0x3c]
jne 0x4c8f45
mov edi, dword [esi + 0x20]
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4c8f31
mov eax, dword [edi + 4]
mov bl, 1
mov dword [esi + 0x34], ebx
cmp eax, edx
jne 0x4c8f4b
mov byte [ecx], 2
dec dword [esi + 0xc]
inc dword [esi + 0x18]
jmp 0x4c8f4b
mov byte [ecx], 0
dec dword [esi + 0xc]
mov eax, dword [esi + 0x20]
add eax, 0xc
inc ecx
jmp 0x4c8e98
mov ecx, edx
test byte [esi + 0x34], 1
je 0x4c8dcf
mov eax, dword [esi + 0x1c]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x4c8f78
add eax, 2
mov dword [edi + 0xc], eax
jmp 0x4c8fa6
mov eax, dword [edi]
mov ebx, dword [eax + 0x24]
mov dword [esi + 0xb8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0xb8], 0
mov ecx, edi
call ebx
mov edx, dword [esi + 0x28]
mov ecx, edx
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
je 0x4c8dcf
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
add eax, ecx
mov ecx, edx
cmp eax, 2
jb 0x4c8dcf
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x14]
cmp byte [ecx], 2
jne 0x4c8fec
movzx edx, byte [eax + 0xb]
test dl, dl
jns 0x4c8fdd
mov edx, dword [eax + 4]
mov edi, dword [esi + 0x28]
cmp edx, edi
mov edx, edi
je 0x4c8fec
mov byte [ecx], 0
dec dword [esi + 0x18]
add eax, 0xc
inc ecx
cmp eax, dword [ebp + 0xc]
jne 0x4c8fcd
mov ecx, edx
jmp 0x4c8dcf
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x1c]
lea eax, [esi + 0x38]
push eax
call fcn.00549d50
test al, al
mov edx, dword [ebp + 0x14]
je 0x4c9018
or byte [edx], 2
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x14]
je 0x4c9037
cmp byte [ecx], 2
je 0x4c903c
mov eax, dword [esi + 0x24]
add eax, 0xc
inc ecx
mov dword [esi + 0x24], eax
cmp eax, dword [ebp + 0xc]
jne 0x4c9023
or byte [edx], 4
jmp 0x4c9042
mov eax, dword [esi + 0x24]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x4c9059
push 0
push eax
push 0x5e3220
call fcn.004ee300
add esp, 0xc
mov eax, dword [esi + 0xb0]
mov dword fs:[0], eax
mov eax, dword [esi + 0x30]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xb8], eax
call fcn.005621b0
int3