Function at 0x45a920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a16b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
mov eax, 4
push ebp
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov ebx, ecx
lea eax, [esp + 0x1c]
push edi
push eax
mov ecx, esi
call fcn.00498762
mov edi, dword [esp + 0x9c]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x20]
push ecx
push edx
push edi
mov ecx, ebx
call fcn.0045a870
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov ebp, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x34], eax
sub ecx, ebp
lea eax, [esp + 0x30]
mov dword [esp + 0x30], ecx
push eax
mov ecx, esi
call fcn.004986f9
mov ecx, dword [esp + 0x30]
mov eax, 0x14
cmp ecx, eax
jge 0x45a9b1
cmp dword [esp + 0x34], eax
jge 0x45a9b1
xor ecx, ecx
jmp 0x45a9b6
mov ecx, 1
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], ecx
test al, 0x40
je 0x45aa86
test eax, 0x10000000
jne 0x45aa86
cmp ecx, 1
jne 0x45aa86
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx]
mov edx, dword [eax + 8]
xor ecx, ecx
cmp edx, 8
sete cl
mov eax, ecx
test eax, eax
jne 0x45aa86
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x20]
lea edi, [edx + eax]
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
add ebp, ecx
sub ecx, eax
mov dword [esp + 0x18], ecx
push 0xffff00
lea ecx, [esp + 0x3c]
call fcn.00498b30
lea edx, [esp + 0x38]
mov ecx, esi
push edx
mov dword [esp + 0x94], 0
call fcn.00498081
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
push edi
push ebp
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Ellipse]
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00498081
mov dword [esp + 0x38], 0xb95414
lea ecx, [esp + 0x38]
mov dword [esp + 0x90], 1
call fcn.00498aca
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0xb954e0
mov eax, dword [ebx + 4]
mov dword [esp + 0x90], 2
and eax, 0x10000000
neg eax
sbb eax, eax
and eax, 0xc0c0c0
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x2c]
call fcn.00498a73
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00498081
mov edx, dword [esi]
push 0
mov ecx, esi
mov dword [esp + 0x20], eax
call dword [edx + 0x24]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], eax
lea edi, [esp + 0x40]
test al, 1
je 0x45aaf9
cmp dword [esp + 0x10], 1
jne 0x45ab25
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x24]
mov ecx, dword [edi]
mov ebx, dword [esp + 0x20]
lea ebp, [eax + edx]
add ebx, ecx
sub eax, edx
mov edx, dword [esp + 0x20]
push ebp
push ebx
sub ecx, edx
push eax
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x14]
inc eax
add edi, 8
cmp eax, 8
mov dword [esp + 0x14], eax
jl 0x45aaee
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00498081
mov edx, dword [esp + 0x18]
mov ecx, esi
push edx
call fcn.00498081
mov dword [esp + 0x28], 0xb95414
lea ecx, [esp + 0x28]
mov dword [esp + 0x90], 3
call fcn.00498aca
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 8