Function at 0x4c6be0
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x652610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov eax, dword [esp + 0x98]
push ebx
push ebp
push esi
mov edx, dword [eax + 8]
mov esi, ecx
mov ecx, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [eax + 0xc]
xor ebp, ebp
xor ebx, ebx
cmp edi, ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], eax
jle 0x4c7022
lea eax, [edx + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
lea eax, [ecx + 8]
add edx, 4
add ecx, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xac]
mov edx, dword [ecx]
mov ecx, dword [eax]
cmp edi, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], ecx
je 0x4c6c7b
lea edx, [esp + 0x2c]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, edi
call fcn.004a2790
mov ecx, dword [esp + 0x30]
mov al, byte [ebx + ecx]
and eax, 6
cmp eax, 6
jne 0x4c6cdf
mov eax, dword [esp + 0x18]
mov edi, dword [esi]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x70], edx
shr edi, 8
cmp edi, eax
jb 0x4c6cae
push edi
mov ecx, esi
call fcn.004f55b0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
and eax, 0xff
mov edx, dword [ecx + edi*4]
lea ecx, [edx + eax*8]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + edi*4]
mov byte [edx + eax], 1
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x70]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [esi]
inc eax
mov dword [esi], eax
jmp 0x4c6fc3
cmp eax, 2
jne 0x4c6d86
mov eax, dword [esp + 0x30]
cmp byte [ebx + eax - 1], 6
jne 0x4c6d31
mov ecx, dword [esp + 0x3c]
dec ecx
cmp ebx, ecx
je 0x4c6d03
cmp byte [ebx + eax + 1], 6
jne 0x4c6d31
mov eax, dword [esp + 0x14]
fld dword [eax]
fcomp dword [eax - 4]
fnstsw ax
test ah, 0x40
je 0x4c6d31
mov eax, dword [esp + 0x10]
fld dword [eax]
fcomp dword [eax - 4]
fnstsw ax
test ah, 0x40
je 0x4c6d31
fld dword [esp + 0x18]
fadd dword [0x661224]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov edi, dword [esi]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x60], edx
shr edi, 8
cmp edi, eax
jb 0x4c6d55
push edi
mov ecx, esi
call fcn.004f55b0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
and eax, 0xff
mov edx, dword [ecx + edi*4]
lea ecx, [edx + eax*8]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + edi*4]
mov byte [edx + eax], 2
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [esi]
inc eax
mov dword [esi], eax
jmp 0x4c6fc3
cmp eax, 4
jne 0x4c6fc3
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
cmp edi, ebp
mov ecx, dword [eax - 4]
mov eax, dword [edx - 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
mov ecx, dword [eax]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [edx]
mov edx, dword [ecx]
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], edx
je 0x4c6e04
lea eax, [esp + 0x54]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, edi
call fcn.004a2790
lea edx, [esp + 0x40]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, edi
call fcn.004a2790
lea ecx, [esp + 0x58]
lea edx, [esp + 0x50]
push ecx
push edx
mov ecx, edi
call fcn.004a2790
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], 0x40
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push eax
push ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0xc0], ebp
call fcn.004f56e0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add ebx, 2
mov edi, dword [esp + 0x24]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x10]
mov eax, 8
mov dword [esp + 0xa0], 1
add ecx, eax
add ebx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x20]
add edx, eax
add edi, eax
mov dword [esp + 0x1c], edx
add ecx, eax
add ebx, eax
lea edx, [esp + 0x44]
lea eax, [esp + 0x48]
mov dword [esp + 0x28], ecx
push edx
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x88], ebp
call fcn.004c7040
mov ebx, eax
cmp ebx, ebp
je 0x4c6f63
cmp ebx, 1
jne 0x4c6ef6
cmp dword [esi], ebp
je 0x4c6ef6
mov ebx, 2
mov edi, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
shr edi, 8
cmp edi, eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x64], edx
jb 0x4c6f1a
push edi
mov ecx, esi
call fcn.004f55b0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
and eax, 0xff
mov edx, dword [ecx + edi*4]
lea ecx, [edx + eax*8]
mov edx, dword [esi + 0x10]
add ecx, 4
mov edx, dword [edx + edi*4]
mov byte [edx + eax], bl
add edx, eax
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov dword [ecx - 4], eax
mov dword [ecx], edx
mov ebx, dword [esi]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x48]
push eax
inc ebx
push ecx
lea ecx, [esp + 0x7c]
mov dword [esi], ebx
call fcn.004c7040
mov ebx, eax
cmp ebx, ebp
jne 0x4c6ee8
mov eax, dword [esp + 0x88]
mov dword [esp + 0xa0], 0xffffffff
cmp eax, ebp
je 0x4c6fbf
mov edx, dword [esp + 0x90]
lea edi, [edx + eax*4 - 4]
dec eax
mov dword [esp + 0x88], eax
mov eax, dword [edi]
push eax
call fcn.0048b400
mov eax, dword [esp + 0x8c]
add esp, 4
sub edi, 4
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x88], eax
jne 0x4c6f8c
mov edx, dword [esp + 0x90]
push edx
call fcn.0048b400
add esp, 4
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
test byte [ebx + eax], 1
je 0x4c6fd4
mov ecx, esi
call fcn.004f5670
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov eax, 4
add edi, eax
add edx, eax
add ecx, eax
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
add edi, eax
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x3c]
inc ebx
cmp ebx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ecx
jl 0x4c6c4b
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret 8