Function at 0x4cbcfa
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
mov dword [esp + 0x4c], ecx
lea eax, [esp + 0x30]
mov ecx, dword [ebp + 0x18]
mov esi, edx
xor edx, edx
mov dword [esp + 0x44], esi
push edi
push eax
mov dword [ecx], edx
mov ebx, edx
mov dword [esp + 0x38], edx
mov edi, edx
mov dword [esp + 0x10], edx
mov ecx, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], edx
mov edx, 0x4062e4
push 0x20019
call fcn.004cd6f0
mov esi, eax
test esi, esi
js 0x4cc150
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x2c]
call fcn.004cd8f8
mov esi, eax
test esi, esi
js 0x4cc150
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x38], eax
cmp dword [esp + 0x4c], eax
jbe 0x4cc150
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
push 0x20019
mov edx, dword [edx + eax*4]
call fcn.004cd6f0
mov esi, eax
test esi, esi
jns 0x4cbdb7
xor esi, esi
jmp 0x4cc05f
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push 0x10
push 0
push dword [eax + ecx*4]
call dword [0x421154]
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4cc051
cmp eax, 0xffffffff
je 0x4cc051
lea ecx, [esp + 0x44]
shr eax, 0x18
push ecx
and eax, 0xf
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov dword [esp + 0x5c], eax
call fcn.004cba77
mov ecx, dword [esp + 0x1c]
mov edx, 0x406448
push eax
push 0
call fcn.004cdd81
mov esi, eax
cmp esi, 0xc0000034
je 0x4cbdb0
cmp esi, 0xc0000225
je 0x4cbdb0
test esi, esi
js 0x4cc0e8
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
and dword [esp + 0x18], 0
push eax
push 0
push dword [ebp + 0xc]
push ebx
push dword [esp + 0x54]
call fcn.004cb3f9
mov esi, eax
cmp esi, 0xc0000023
jne 0x4cc0e8
push dword [esp + 0x18]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004212d8]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4cc0d9
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x4c]
push eax
push dword [ebp + 0xc]
push ebx
push dword [esp + 0x54]
call fcn.004cb3f9
mov esi, eax
test esi, esi
js 0x4cc0e8
lea eax, [edi + 0x14]
cmp eax, edi
jb 0x4cc0e0
mov edx, dword [esp + 0x18]
lea edi, [edx + eax]
cmp edi, eax
jb 0x4cc0e0
mov eax, dword [ebp + 0x18]
xor esi, esi
inc dword [eax]
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
cmp ebx, edi
jae 0x4cbed1
xor ebx, ebx
jmp 0x4cbf18
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
add eax, edi
mov dword [esp + 0x24], ecx
push edx
push dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], eax
lea eax, [ecx + 0x14]
push eax
mov dword [ecx + 0x10], edx
call fcn.004d6f10
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x18]
sub ebx, edi
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
test byte [ebp + 0xc], 8
je 0x4cbfc5
cmp dword [esp + 0x54], 1
jne 0x4cbfc5
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x50]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebx
push eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0xc]
lea edx, [edx + 4]
push dword [esp + 0x3c]
call fcn.004cbb69
mov esi, eax
test esi, esi
jns 0x4cbf82
cmp esi, 0xc0000023
je 0x4cbf82
cmp esi, 0xc0000225
je 0x4cc00e
cmp esi, 0xc0000034
jne 0x4cc0e8
jmp 0x4cc00e
mov eax, dword [esp + 0x20]
add eax, edi
cmp eax, edi
jb 0x4cc0e0
mov ecx, dword [ebp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x3c]
xor esi, esi
add dword [ecx], eax
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], edi
jae 0x4cbfa8
xor ebx, ebx
jmp 0x4cc00e
test eax, eax
je 0x4cc00e
mov ebx, dword [ecx]
mov ecx, dword [esp + 0x1c]
sub ebx, edi
mov eax, dword [ebp + 0x10]
add eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [ecx], eax
jmp 0x4cc00e
test byte [ebp + 0xc], 4
je 0x4cc00e
cmp dword [esp + 0x2c], 0x14000006
jne 0x4cc00e
mov eax, dword fs:[0x30]
push edx
push 0
push dword [eax + 0x18]
call dword [fcn.004212d8]
mov dword [esp + 0x40], eax
test eax, eax
je 0x4cc0d2
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x10]
mov dword [esp + 0x38], ecx
push eax
call fcn.004d6f10
add esp, 0xc
shr dword [esp + 0x30], 4
push dword [esp + 0xc]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004212dc]
push dword [esp + 0x10]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004212dc]
mov ecx, dword [esp + 0x14]
call fcn.004cd48a
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
jmp 0x4cc05f
mov ecx, dword [esp + 0x14]
call fcn.004cd48a
and dword [esp + 0x14], 0
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x4c]
jb 0x4cbd90
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4cc11c
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebx
push eax
push dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
push dword [ebp + 0xc]
push eax
call fcn.004cbc01
mov esi, eax
test esi, esi
jns 0x4cc0af
cmp esi, 0xc0000023
jne 0x4cc0e8
mov eax, dword [esp + 0x20]
add eax, edi
cmp eax, edi
jb 0x4cc0e0
mov edi, eax
xor esi, esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4cc0e8
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x18]
add dword [ecx], eax
jmp 0x4cc0e8
mov esi, 0xc000009a
jmp 0x4cc102
mov esi, 0xc000009a
jmp 0x4cc0e8
mov esi, 0xc0000095
or edi, 0xffffffff
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4cc102
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004212dc]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4cc11c
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004212dc]
cmp dword [esp + 0x10], 0
je 0x4cc138
push dword [esp + 0x10]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004212dc]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4cc145
call fcn.004cd48a
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4cc150
and dword [eax], 0
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4cc15d
call fcn.004cd48a
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], edi
jae 0x4cc169
mov esi, 0xc0000023
cmp dword [esp + 0x28], 0
je 0x4cc185
push dword [esp + 0x28]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.004212dc]
mov dword [ebx], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14