Function at 0x45d844
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45dd06
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0xf
jne 0x45dcf0
mov dl, 1
mov eax, dword [0x4de7d8]
call fcn.004beb44
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45dce9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 8]
call fcn.004e23d4
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x68]
call fcn.004be3e8
mov edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
call fcn.004be3f0
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004e3820
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004bf548
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004bf52c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
call fcn.00494d70
test eax, eax
jne 0x45d91b
mov edx, 0x45dd1c
mov eax, dword [ebp - 8]
call fcn.004bf548
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x70]
mov ecx, 0x3c
mov eax, dword [ebp - 8]
call sym.DWL2Main.exe__Mycontrol_GetShadeColor_qqrp16Graphics_TCanvas15Graphics_TColori
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
call fcn.00538266
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x45d94b
adc eax, 0
dec eax
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.004beb10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
call fcn.004be6f4
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004bf2b4
mov ecx, dword [ebp - 0x24]
dec ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004bf1c0
mov ecx, dword [ebp - 0x24]
dec ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.004bf160
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
cmp byte [eax + 0x1a5], 0
je 0x45dae9
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004be6f4
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x45d9dd
adc eax, 0
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004be6f4
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004bf2b4
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.004beb10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x170]
call fcn.004be9ec
mov edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
call fcn.004be9f4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
call fcn.004be9ec
mov edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
call fcn.004be6f4
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004bf0e8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004be6f4
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004bf1c0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004bf160
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x14]
add edx, 0x10
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004bf160
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x14]
add edx, 0x10
mov eax, dword [ebp - 8]
call fcn.004bf160
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.004bf160
jmp 0x45db9f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004be6f4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004be6f4
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004bf2b4
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
call fcn.00538266
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.004beb10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x170]
call fcn.004be9ec
mov edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
call fcn.004be9f4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
call fcn.004be9ec
mov edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
call fcn.004be6f4
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004bf0e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004e3e6c
test al, al
je 0x45dbcc
mov eax, dword [ebp - 8]
mov dword [eax + 0x54], 0x80
mov eax, dword [ebp - 0x20]
sub eax, 9
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
jmp 0x45dbde
mov eax, dword [ebp - 0x28]
add eax, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
call fcn.00538266
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x45dc0a
adc eax, 0
add eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.004beb10
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
call fcn.004be9f4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
call fcn.004be9ec
mov edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
call fcn.004be6f4
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004bf0e8
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
sub edx, 2
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004bf1c0
mov edx, dword [ebp - 0x20]
sub edx, 2
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.004bf160
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.004beb10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004e3e6c
test al, al
je 0x45dcbd
mov eax, dword [ebp - 8]
mov dword [eax + 0x54], 0x80
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 8]
call fcn.004bf448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dcf0
mov eax, dword [ebp - 8]
call fcn.00493d90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dd0d
lea eax, [ebp - 0x18]
call fcn.00494ab8
ret