Function at 0x452320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a1253
push eax
mov eax, dword [esp + 0x1c]
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
je 0x452ac4
cmp eax, 1
je 0x452365
cmp eax, 2
je 0x452365
mov ebx, 1
mov dword [esp + 0x118], ebx
jmp 0x45236c
mov ebx, dword [esp + 0x118]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, dword [esp + 0x108]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_GetClipRgn]
dec eax
mov dword [esp + 0x50], ebp
neg eax
sbb eax, eax
mov dword [esp + 0x4c], 0xb953f0
inc eax
mov dword [esp + 0x5c], eax
mov eax, 0x55555556
mov dword [esp + 0x100], ebp
imul ebx
mov ecx, edx
mov edi, 0xa
shr ecx, 0x1f
add edx, ecx
mov ecx, edx
cmp ecx, 0xa
jl 0x4523c5
mov edi, ecx
cmp ecx, 3
jge 0x4523cf
mov ecx, 3
mov eax, ebx
mov dword [esp + 0x14], ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x124]
sar eax, 1
dec edx
imul edx, ecx
add edx, eax
add edx, edi
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x120]
dec edx
imul edx, ecx
add edx, edi
lea edx, [ebx + edx*2]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x130]
dec edx
imul edx, ecx
add edx, eax
mov eax, dword [esp + 0x12c]
add edx, edi
dec eax
imul eax, ecx
add eax, edi
mov dword [esp + 0x60], edx
lea ecx, [ebx + eax*2]
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x14]
xor edx, edx
test eax, eax
jne 0x45245e
mov eax, dword [esp + 0x10c]
mov ebx, dword [esp + 0x11c]
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x64]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x20], ecx
jmp 0x452488
mov eax, dword [esp + 0x110]
mov ebx, dword [esp + 0x128]
mov ebp, dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test ebx, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
je 0x452726
cmp ebx, 5
jg 0x452612
lea ecx, [esp + 0x54]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push ebp
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00451900
push 0
lea ecx, [esp + 0x5c]
push 0
lea edx, [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0x80]
push edi
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.00451900
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
add esp, 0x38
cmp ebx, 4
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], 3
je 0x452507
cmp ebx, 5
jne 0x452538
mov eax, ebp
lea ecx, [esp + 0x44]
cdq
and edx, 3
push 0
add eax, edx
push ecx
push 0
push 0
sar eax, 2
push eax
lea edx, [esp + 0x68]
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00451900
add esp, 0x1c
mov dword [esp + 0x10], 4
mov edx, dword [esp + 0x118]
lea ecx, [esp + 0x54]
push 0
push ecx
push 0
push 0
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00451900
push 0
lea edx, [esp + 0xd0]
push 0
lea eax, [esp + 0xcc]
push edx
push eax
lea ecx, [esp + 0x80]
push edi
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.00451900
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x50]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xcc], ecx
mov ecx, dword [esp + 0x74]
add esp, 0x38
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x90]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x40]
push 5
push eax
push ecx
mov dword [esp + 0xb0], edx
call dword [sym.imp.GDI32.dll_LPtoDP]
push 2
lea edx, [esp + 0x94]
push 5
push edx
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push eax
lea ecx, [esp + 0x50]
call fcn.00498a73
lea eax, [esp + 0x4c]
push 1
push eax
mov ecx, esi
call fcn.004986b1
lea ecx, [esp + 0x4c]
call fcn.00498aca
jmp 0x452722
cmp ebx, 6
je 0x4526d4
cmp ebx, 7
je 0x4526d4
cmp ebx, 8
je 0x452662
cmp ebx, 9
je 0x452662
mov eax, ebp
mov dword [esp + 0x10], 2
cdq
sub eax, edx
mov edx, ecx
sar eax, 1
sub edx, eax
add eax, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
mov ebx, edx
mov dword [esp + 0x34], eax
sub ebx, edi
add edx, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], edx
jmp 0x452722
lea eax, [esp + 0x88]
lea ecx, [esp + 0x80]
push eax
mov eax, ebp
cdq
sub eax, edx
push ecx
push 0
push 0
sar eax, 1
push eax
lea edx, [esp + 0x2c]
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00451900
push 0
lea ecx, [esp + 0x64]
push 0
lea edx, [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0xb4]
push edi
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.00451900
push 0
lea edx, [esp + 0x78]
push 0
lea eax, [esp + 0x74]
push edx
push eax
lea ecx, [esp + 0xc8]
push edi
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.00451900
add esp, 0x54
jmp 0x45271a
push 0
lea eax, [esp + 0x40]
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x28]
push edi
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00451900
lea ecx, [esp + 0x60]
lea edx, [esp + 0x50]
push ecx
mov eax, ebp
push edx
push 0
cdq
sub eax, edx
push 0
sar eax, 1
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.00451900
add esp, 0x38
mov dword [esp + 0x10], 4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x452747
test edx, edx
mov dword [esp + 0x74], edx
jle 0x452766
lea edx, [esp + 0x2c]
push 0x20
lea eax, [esp + 0xdc]
push edx
push eax
jmp 0x45275e
test edx, edx
mov dword [esp + 0x78], edx
jle 0x452766
lea ecx, [esp + 0x2c]
push 0x20
lea edx, [esp + 0xbc]
push ecx
push edx
call fcn.00481910
add esp, 0xc
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 1
mov dword [esp + 0x14], eax
jle 0x452428
mov ebp, dword [esp + 0x134]
mov eax, dword [esp + 0x118]
mov ebx, dword [esp + 0x114]
push 0
push ebp
push eax
push ebx
push esi
call fcn.00451d70
mov ecx, dword [esp + 0x120]
mov edi, eax
add esp, 0x14
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ecx
lea ecx, [esp + 0x84]
push eax
push ecx
mov ecx, esi
call fcn.00498572
mov ecx, dword [esp + 0x110]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ecx
push eax
mov ecx, esi
call fcn.004985be
push 0
push ebx
push edi
push esi
call fcn.00451e60
mov eax, dword [esp + 0x6c]
mov edi, 1
add esp, 0x10
cmp eax, edi
jne 0x4527fa
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x452803
push 0
mov ecx, esi
call fcn.004984ae
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x452832
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x452832
mov dword [esp + 0x4c], method.CGdiObject.virtual_0
mov dword [esp + 0x100], edi
jmp 0x452abb
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x452866
mov ebx, dword [esp + 0x74]
lea edx, [esp + 0xd8]
push 0x20
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00481910
mov edi, dword [esp + 0x128]
add esp, 0xc
jmp 0x452888
mov ebx, dword [esp + 0x78]
lea ecx, [esp + 0xb8]
push 0x20
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.00481910
mov edi, dword [esp + 0x134]
add esp, 0xc
test ebx, ebx
jle 0x452a96
push ebp
lea ecx, [esp + 0x68]
call fcn.00498b30
mov eax, ebp
lea ecx, [esp + 0x6c]
sub eax, 0xffffff
mov byte [esp + 0x100], 2
neg eax
sbb eax, eax
and eax, 0xffffff
push eax
call fcn.00498b30
mov ecx, dword [esi + 8]
push 2
push ecx
mov byte [esp + 0x108], 3
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
call fcn.00498a5e
mov edx, dword [esp + 0x118]
push ebp
push edx
push 0
lea ecx, [esp + 0x60]
mov dword [esp + 0x6c], eax
call fcn.00498ae0
lea eax, [esp + 0x54]
mov ecx, esi
push eax
mov byte [esp + 0x104], 4
call fcn.00498081
cmp edi, 2
mov dword [esp + 0x5c], eax
mov dword [esp + 0x28], 0
je 0x452935
cmp edi, 5
je 0x452935
cmp edi, 7
je 0x452935
cmp edi, 9
je 0x452935
cmp edi, 0xb
je 0x452935
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call fcn.00498081
jmp 0x452949
lea edx, [esp + 0x6c]
mov ecx, esi
push edx
call fcn.00498081
mov dword [esp + 0x28], 1
cmp edi, 0xa
je 0x452a0b
cmp edi, 0xb
je 0x452a14
cmp edi, 3
jne 0x4529a0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
lea edx, [esp + 0x84]
push ecx
push edx
mov ecx, esi
call fcn.00498572
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.004985be
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
push eax
mov ecx, esi
call fcn.004985be
jmp 0x452a32
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.GDI32.dll_BeginPath]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x8c]
push eax
push ecx
mov ecx, esi
call fcn.00498572
cmp ebx, 1
jle 0x4529e1
lea edi, [esp + 0x34]
dec ebx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
push ecx
push eax
mov ecx, esi
call fcn.004985be
add edi, 8
dec ebx
jne 0x4529cd
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.GDI32.dll_EndPath]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4529ff
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_FillPath]
jmp 0x452a32
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.GDI32.dll_StrokeAndFillPath]
jmp 0x452a32
mov edx, dword [esi]
push 8
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Ellipse]
mov edx, dword [esp + 0x5c]
mov ecx, esi
push edx
call fcn.00498081
mov eax, dword [esp + 0x60]
mov ecx, esi
push eax
call fcn.00498081
mov edi, 0xb95358
mov dword [esp + 0x54], edi
lea ecx, [esp + 0x54]
mov byte [esp + 0x100], 5
call fcn.00498aca
mov dword [esp + 0x6c], edi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x100], 6
call fcn.00498aca
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x64]
mov byte [esp + 0x100], 7
call fcn.00498aca
mov byte [esp + 0x100], 0
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 1
mov dword [esp + 0x14], eax
jle 0x45283a
mov dword [esp + 0x4c], method.CGdiObject.virtual_0
mov dword [esp + 0x100], 8
lea ecx, [esp + 0x4c]
call fcn.00498aca
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf4
ret