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

Disassembly:
push 0xffffffffffffffff
push 0x5d239b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x613ad0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, dword [esp + 0x58]
xor esi, esi
cmp edi, esi
je 0x46568e
mov ebp, dword [esp + 0x5c]
cmp ebp, esi
je 0x46568e
xor eax, eax
cmp dword [0x615428], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
je 0x465137
test byte [ebp + 0xcc], 4
je 0x465137
mov ecx, dword [0x615468]
call fcn.0040d340
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push ebp
call fcn.00427560
add esp, 0x14
push esi
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
call fcn.0041ce40
mov eax, dword [esp + 0x60]
cmp eax, esi
jne 0x46516b
cmp dword [esp + 0x64], esi
je 0x465181
mov ecx, dword [esp + 0x64]
neg ecx
push ecx
neg eax
push eax
lea edx, [esp + 0x38]
push edx
mov ecx, edi
call fcn.0058eeaf
mov eax, dword [esp + 0x38]
cmp eax, esi
mov ecx, dword [esp + 0x3c]
jne 0x465191
cmp ecx, esi
je 0x4651a2
neg ecx
push ecx
neg eax
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
test byte [ebp + 0xcc], 2
je 0x46551d
mov ecx, dword [esp + 0x78]
lea edx, [ecx + ecx*4]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
lea edx, [ecx + ecx]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test byte [ebp + 0xcc], 1
mov dword [esp + 0x28], eax
push 0
mov ecx, ebp
je 0x465204
call fcn.0041ce20
jmp 0x465209
call fcn.0041ce00
mov ecx, dword [esp + 0x24]
imul eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x58]
cdq
idiv ecx
fidiv dword [esp + 0x1c]
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], 0
fstp dword [esp + 0x14]
test edx, edx
jne 0x465255
mov ecx, eax
and ecx, 0x80000001
jns 0x46524a
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x465255
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
fld dword [0x5e3058]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4652b5
fadd qword [0x5debe8]
call fcn.005ac350
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4652ad
fld qword [0x5e3050]
jmp 0x465296
fxch st(1)
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcom st(2)
fnstsw ax
test ah, 5
jnp 0x465294
fstp st(1)
mov dword [esp + 0x20], 0
test byte [ebp + 0xcc], 1
fstp st(1)
fimul dword [esp + 0x78]
fdiv qword [0x5d9510]
fstp dword [esp + 0x14]
je 0x4653fc
mov edx, dword [esp + 0x44]
add edx, 0xffffffff
mov dword [esp + 0x58], edx
fild dword [esp + 0x58]
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
call fcn.005ac350
mov ecx, dword [edi + 4]
mov ebp, eax
mov eax, dword [esp + 0x40]
push 0
push ebp
sub eax, esi
push eax
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x40]
mov eax, dword [edi + 4]
push ebp
push edx
push eax
call dword [sym.imp.GDI32.dll_LineTo]
fild dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + 4]
fsub dword [esp + 0x14]
mov dword [esp + 0x30], edx
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fild dword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4653ad
call fcn.005ac350
mov ecx, dword [edi + 4]
mov ebp, eax
mov eax, dword [esp + 0x40]
push 0
push ebp
sub eax, esi
push eax
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], edx
push ebp
jne 0x46536d
mov eax, dword [esp + 0x44]
mov ecx, dword [edi + 4]
push eax
push ecx
jmp 0x46537a
mov edx, dword [esp + 0x44]
mov eax, dword [edi + 4]
sub edx, esi
add edx, ebx
push edx
push eax
call dword [sym.imp.GDI32.dll_LineTo]
fld dword [esp + 0x58]
fsub dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
add dword [esp + 0x18], 1
lea edx, [ecx + 4]
fstp dword [esp + 0x58]
mov dword [esp + 0x30], edx
fld dword [esp + 0x58]
fild dword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x46533c
fstp st(0)
add ecx, 1
mov dword [esp + 0x58], ecx
fild dword [esp + 0x58]
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
call fcn.005ac350
mov ecx, dword [edi + 4]
mov ebp, eax
mov eax, dword [esp + 0x40]
push 0
push ebp
sub eax, esi
push eax
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x40]
mov eax, dword [edi + 4]
push ebp
push edx
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x28]
add ecx, esi
sub dword [esp + 0x40], ecx
jmp 0x46551d
fild dword [esp + 0x38]
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
call fcn.005ac350
mov edx, dword [esp + 0x44]
push 0
sub edx, esi
mov ebp, eax
mov eax, dword [edi + 4]
push edx
push ebp
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x44]
mov edx, dword [edi + 4]
push ecx
push ebp
push edx
call dword [sym.imp.GDI32.dll_LineTo]
fild dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
lea eax, [ecx - 4]
fadd dword [esp + 0x14]
mov dword [esp + 0x30], eax
fsub qword [0x5e3048]
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fild dword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4654d3
call fcn.005ac350
mov ecx, dword [esp + 0x44]
mov edx, dword [edi + 4]
push 0
sub ecx, esi
push ecx
mov ebp, eax
push ebp
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x18], eax
jne 0x465492
mov ecx, dword [esp + 0x44]
mov edx, dword [edi + 4]
push ecx
push ebp
push edx
jmp 0x4654a0
mov eax, dword [esp + 0x44]
mov ecx, dword [edi + 4]
sub eax, esi
add eax, ebx
push eax
push ebp
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
fld dword [esp + 0x58]
fadd dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
add dword [esp + 0x18], 1
lea edx, [ecx - 4]
fstp dword [esp + 0x58]
mov dword [esp + 0x30], edx
fld dword [esp + 0x58]
fild dword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x465461
fstp st(0)
add ecx, 0xffffffff
mov dword [esp + 0x58], ecx
fild dword [esp + 0x58]
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
call fcn.005ac350
mov ecx, dword [edi + 4]
mov ebp, eax
mov eax, dword [esp + 0x44]
push 0
sub eax, esi
push eax
push ebp
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x44]
mov eax, dword [edi + 4]
push edx
push ebp
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x28]
add ecx, esi
sub dword [esp + 0x44], ecx
mov edx, dword [esp + 0x70]
mov ecx, dword [edi + 4]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_FrameRect]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x465558
mov ecx, dword [edi + 4]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov ebp, dword [esp + 0x74]
test ebp, ebp
je 0x46566e
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x46566e
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
sub edx, ebx
cmp eax, edx
mov dword [esp + 0x58], 0
mov esi, ebp
jne 0x465596
mov ecx, dword [esp + 0x44]
mov eax, ecx
sub eax, dword [esp + 0x3c]
cmp dword [ebp + 0x18], eax
je 0x46560b
push 0x28
call fcn.0057def7
add esp, 4
mov dword [esp + 0x58], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x50], esi
je 0x4655b7
mov ecx, eax
call fcn.00413700
mov esi, eax
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x38]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x58], 0xffffffff
call fcn.004146c0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [esi + 0x18]
push eax
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 4]
push 0
push 0
push edx
push eax
push 0
push 0
push ecx
mov ecx, ebp
call fcn.00414be0
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x58], 1
mov edx, dword [esp + 0x5c]
test byte [edx + 0xcc], 1
push 0
push 0
je 0x465637
mov eax, ecx
sub eax, dword [esp + 0x44]
imul eax, dword [esp + 0x70]
cdq
idiv dword [esp + 0x24]
mov edx, dword [esp + 0x48]
push eax
push edx
sub ecx, eax
push ecx
jmp 0x465650
mov eax, dword [esp + 0x48]
sub eax, ebx
imul eax, dword [esp + 0x70]
cdq
idiv dword [esp + 0x24]
push ecx
add eax, ebx
push eax
mov eax, dword [esp + 0x4c]
push eax
push ebx
push edi
mov ecx, esi
call fcn.00414a70
cmp dword [esp + 0x58], 0
je 0x46566e
test esi, esi
je 0x46566e
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x46567c
cmp dword [esp + 0x64], eax
je 0x46568e
mov ecx, dword [esp + 0x64]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.0058eeaf
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret