Function at 0x451550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cc7c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0xc], ebp
mov ecx, dword [edi + 0x10]
cmp ecx, ebp
jne 0x451598
mov eax, dword [esp + 0x48]
cmp eax, ebp
je 0x451584
mov dword [eax], ebp
mov esi, dword [esp + 0x40]
mov ecx, esi
call fcn.0048dd00
mov dword [esp + 0x38], ebp
jmp 0x451879
push ebx
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x18]
push edx
call fcn.0044eda0
mov eax, dword [edi + 0x10]
mov ebx, dword [esp + 0x14]
mov esi, dword [eax + 0x1c]
mov eax, dword [eax + 8]
cmp ebx, ebp
je 0x4515bd
cmp ebx, eax
je 0x4515c2
call fcn.0051d2bd
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x18], esi
je 0x451863
cmp eax, ebp
je 0x4515da
mov dword [eax], 1
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x30]
call fcn.0043bf90
mov dword [esp + 0x3c], 1
push str._color
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00406610
add esp, 0xc
mov byte [esp + 0x3c], 2
mov ecx, dword [edi + 0xc]
mov edx, dword [eax]
mov dword [esp + 0x4c], edx
cmp ecx, ebp
je 0x45166c
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x20]
push edx
call fcn.0044ebf0
mov eax, dword [edi + 0xc]
mov esi, dword [esp + 0x1c]
mov ebp, dword [eax + 0x1c]
mov eax, dword [eax + 8]
test esi, esi
je 0x451639
cmp esi, eax
je 0x45163e
call fcn.0051d2bd
mov ebx, dword [esp + 0x20]
cmp ebx, ebp
je 0x451668
test esi, esi
jne 0x451664
call fcn.0051d2bd
cmp ebx, dword [esi + 0x14]
jne 0x451659
call fcn.0051d2bd
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
mov ebx, dword [esp + 0x14]
jmp 0x45166e
mov esi, dword [esi]
jmp 0x45164f
mov ebx, dword [esp + 0x14]
xor esi, esi
test ebx, ebx
jne 0x451734
call fcn.0051d2bd
xor eax, eax
mov ebp, dword [esp + 0x18]
cmp ebp, dword [eax + 0x14]
jne 0x45168b
call fcn.0051d2bd
mov dword [ebp + 0x68], esi
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x24]
call fcn.004381e0
mov byte [esp + 0x3c], 0
lea ecx, [esp + 0x2c]
call fcn.004381e0
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x28]
call fcn.0043bf90
mov dword [esp + 0x3c], 3
push str._hicolor
push eax
lea edx, [esp + 0x34]
push edx
call fcn.00406610
add esp, 0xc
mov byte [esp + 0x3c], 4
mov ecx, dword [edi + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
test ecx, ecx
je 0x451743
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0044ebf0
mov eax, dword [edi + 0xc]
mov esi, dword [esp + 0x1c]
mov ebp, dword [eax + 0x1c]
mov eax, dword [eax + 8]
test esi, esi
je 0x451709
cmp esi, eax
je 0x45170e
call fcn.0051d2bd
mov ebx, dword [esp + 0x20]
cmp ebx, ebp
je 0x45173f
test esi, esi
jne 0x45173b
call fcn.0051d2bd
cmp ebx, dword [esi + 0x14]
jne 0x451729
call fcn.0051d2bd
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx]
mov ebx, dword [esp + 0x14]
jmp 0x451745
mov eax, dword [ebx]
jmp 0x45167d
mov esi, dword [esi]
jmp 0x45171f
mov ebx, dword [esp + 0x14]
xor esi, esi
test ebx, ebx
jne 0x45184f
call fcn.0051d2bd
xor eax, eax
mov ebx, dword [esp + 0x18]
cmp ebx, dword [eax + 0x14]
jne 0x451762
call fcn.0051d2bd
mov dword [ebx + 0x6c], esi
mov byte [esp + 0x3c], 3
lea ecx, [esp + 0x2c]
call fcn.004381e0
mov byte [esp + 0x3c], 0
lea ecx, [esp + 0x24]
call fcn.004381e0
mov edx, dword [esp + 0x48]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], 0
call fcn.0043bf90
mov ebx, 5
mov dword [esp + 0x3c], ebx
push str._grayedcolor
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00406610
add esp, 0xc
mov byte [esp + 0x3c], 6
mov ebp, dword [esp + 0x14]
mov esi, dword [eax]
test ebp, ebp
jne 0x451856
call fcn.0051d2bd
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x14]
jne 0x4517db
call fcn.0051d2bd
lea edx, [esp + 0x4c]
push edx
push esi
mov ecx, edi
call fcn.004511b0
mov esi, dword [esp + 0x18]
mov dword [esi + 0x70], eax
mov byte [esp + 0x3c], bl
lea ecx, [esp + 0x2c]
call fcn.004381e0
mov byte [esp + 0x3c], 0
lea ecx, [esp + 0x24]
call fcn.004381e0
cmp dword [esp + 0x4c], 0
jne 0x451821
lea ecx, [esp + 0x14]
call fcn.0044d7c0
mov dword [eax + 0x68], 0xc0c0c0
test ebp, ebp
jne 0x45185e
call fcn.0051d2bd
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x451836
call fcn.0051d2bd
add esi, 0xc
push esi
mov esi, dword [esp + 0x48]
mov ecx, esi
call fcn.0048de30
mov dword [esp + 0x3c], 0
jmp 0x451878
mov eax, dword [ebx]
jmp 0x451754
mov eax, dword [ebp]
jmp 0x4517cd
mov eax, dword [ebp]
jmp 0x45182c
cmp eax, ebp
je 0x451869
mov dword [eax], ebp
mov esi, dword [esp + 0x44]
mov ecx, esi
call fcn.0048dd00
mov dword [esp + 0x3c], ebp
pop ebx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], 1
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc