Function at 0x457d80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x54da6e
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3720]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov ebp, ecx
xor edi, edi
cmp dword [ebp + 0x80], edi
je 0x457e0c
mov eax, dword [ebp + 0x80]
cmp eax, edi
je 0x457e0c
push eax
mov dword [ebp + 0x80], edi
mov dword [ebp + 0x84], edi
mov dword [ebp + 0x88], edi
mov dword [ebp + 0x8c], edi
mov dword [ebp + 0x94], edi
mov dword [ebp + 0x90], edi
mov dword [ebp + 0x9c], 0xffffffff
mov byte [ebp + 0x99], 0
mov byte [ebp + 0x98], 0
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, ebp
call fcn.00424f20
call fcn.004295d0
fldz
fcomp qword [0x5beef8]
fnstsw ax
test ah, 0x44
jp 0x457e40
call fcn.004295d0
fldz
fcomp qword [0x5beef8]
fnstsw ax
test ah, 0x44
jp 0x457e40
call fcn.004295d0
mov ecx, ebp
call fcn.004b5640
cmp eax, edi
je 0x458445
call fcn.005081a0
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x457e69
push 0x80004005
call fcn.004021d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
mov dword [esp + 0xc0], edi
fldz
fcomp qword [0x5beef8]
fnstsw ax
test ah, 0x44
jp 0x457e94
call fcn.004295d0
fld qword [0x5bef00]
fstp qword [esp + 0x4c]
fldz
fcomp qword [0x5beef8]
fnstsw ax
test ah, 0x44
jp 0x457eb2
call fcn.004295d0
fld qword [0x5bef10]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [0x5bef08]
fstp qword [esp]
fld qword [0x5b65b8]
fld qword [0x58bc38]
fmul st(1), st(0)
fxch st(1)
call fcn.005296d0
fmul qword [0x5b65b0]
push eax
call fcn.005296d0
fld qword [esp + 0x60]
push eax
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x64]
fld qword [0x5beef8]
fstp qword [esp]
push 0x574420
push ecx
call fcn.00402620
mov edx, dword [esp + 0x6c]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 0x20]
push eax
call fcn.005012e2
fld qword [0x5bef10]
push 0x14
mov esi, eax
call fcn.005296d0
fld qword [0x5bef08]
push eax
call fcn.005296d0
push eax
push edi
push edi
push edi
mov ecx, esi
call fcn.00505623
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.005076e8
fld qword [0x5bef10]
fdiv qword [0x58bc00]
mov ebx, eax
mov dword [esp + 0x74], edi
fld st(0)
call fcn.005296d0
fld qword [0x5bef08]
mov dword [esp + 0x78], eax
call fcn.005296d0
fadd st(0), st(0)
mov dword [esp + 0x7c], eax
call fcn.005296d0
push 0xd
mov dword [esp + 0x84], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebx
call fcn.00504c14
call fcn.005081a0
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x457fc3
push 0x80004005
call fcn.004021d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
mov byte [esp + 0xc0], 1
call fcn.005081a0
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x457ff5
push 0x80004005
call fcn.004021d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
push 0x9fb
lea ecx, [esp + 0x4c]
mov byte [esp + 0xc4], 2
mov edx, dword [ebp + 0x78]
push ecx
push edx
call fcn.00423a60
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xc4], 3
call fcn.00406620
mov byte [esp + 0xc0], 2
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45805a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp + 0x78]
push 0x9fc
lea ecx, [esp + 0x4c]
push ecx
push edx
call fcn.00423a60
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xc4], 4
call fcn.00406620
mov byte [esp + 0xc0], 2
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4580a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4580c0
sub eax, esi
mov esi, dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea ecx, [esp + 0x54]
push ecx
sar eax, 1
push eax
push edx
mov edx, dword [ebx + 4]
push edx
call esi
mov edx, dword [esp + 0x40]
mov eax, edx
lea edi, [eax + 2]
jmp 0x4580f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4580f0
sub eax, edi
lea ecx, [esp + 0x5c]
push ecx
sar eax, 1
push eax
push edx
mov edx, dword [ebx + 4]
push edx
call esi
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
cmp ebx, eax
jle 0x45811a
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x58]
cmp ecx, edi
mov dword [esp + 0x4c], eax
jle 0x45812c
mov edi, ecx
cmp eax, 0x32
mov dword [esp + 0x50], edi
jge 0x45813d
mov dword [esp + 0x4c], 0x50
fild dword [esp + 0x4c]
fmul qword [0x5b65b0]
call fcn.005296d0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push edi
mov esi, eax
mov eax, dword [esp + 0x64]
push esi
push eax
push ebx
push ecx
push edx
lea eax, [esp + 0x54]
push str._CPL__Allow.x__d___Allow.y___d__Dont.x___d__Dont.y___d__Button.cx___d__Button.cy___d_n
push eax
mov dword [esp + 0x6c], esi
call fcn.00402620
mov ecx, dword [esp + 0x5c]
add esp, 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x686
mov ecx, ebp
call fcn.00505278
fild dword [esp + 0x50]
push 0x14
add edi, 0x14
fst qword [esp + 0x68]
add esi, 0x14
fild dword [esp + 0x50]
push edi
push esi
mov ebx, eax
fst qword [esp + 0x78]
fld qword [0x5bef10]
fdiv qword [0x58bc00]
fadd st(0), st(0)
fsubrp st(2)
fld qword [0x58bc40]
fsub st(2), st(0)
fsub st(2), st(0)
fxch st(2)
call fcn.005296d0
fld qword [0x5bef08]
fsub st(2)
push eax
fsub st(1)
fsub st(2)
fsub st(2)
fsubrp st(1)
fsubrp st(1)
call fcn.005296d0
push eax
push 0
mov ecx, ebx
call fcn.00505623
push 0x687
mov ecx, ebp
call fcn.00505278
fld qword [0x5bef10]
fdiv qword [0x58bc00]
push 0x14
push edi
push esi
mov dword [esp + 0x58], eax
fadd st(0), st(0)
fsub qword [esp + 0x70]
fld qword [0x58bc40]
fsub st(1), st(0)
fsub st(1), st(0)
fxch st(1)
call fcn.005296d0
fld qword [0x5bef08]
fsub st(1)
push eax
fsub qword [esp + 0x7c]
fsubrp st(1)
call fcn.005296d0
push eax
push 0
mov ecx, dword [esp + 0x64]
call fcn.00505623
push 0x684
mov ecx, ebp
call fcn.00505278
lea edi, [ebp + 0x1a4]
push 0x566c94
mov ecx, edi
mov esi, eax
call fcn.0050537a
fld qword [0x5bef08]
fsub qword [0x58bcf8]
push 0x14
push 0x50
call fcn.005296d0
fld qword [0x5bef10]
fdiv qword [0x58bc00]
push eax
fadd qword [0x58bc40]
call fcn.005296d0
push eax
push 0x14
push 0
mov ecx, esi
call fcn.00505623
push 0x2bc
lea esi, [ebp + 0x19c]
push 0x18
call fcn.00425360
add esp, 8
test esi, esi
je 0x4582b8
mov esi, dword [esi + 4]
mov edx, dword [ebp + 0x1c4]
push 1
push esi
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x78]
push eax
mov esi, 0x9f9
call fcn.00423ae0
push 0x685
mov ecx, ebp
call fcn.00505278
lea edi, [ebp + 0x214]
push 0x566c94
mov ecx, edi
mov esi, eax
call fcn.0050537a
fld qword [0x5bef10]
fdiv qword [0x58bc00]
push 0x14
fld qword [0x58bc28]
fsubr st(1)
fsub qword [0x58c198]
call fcn.005296d0
fld qword [0x5bef08]
fsub qword [0x58bcf8]
push eax
call fcn.005296d0
fadd qword [0x58bd28]
push eax
call fcn.005296d0
push eax
push 0x14
push 0
mov ecx, esi
call fcn.00505623
push 0x190
lea esi, [ebp + 0x20c]
push 0xc
call fcn.00425360
add esp, 8
test esi, esi
je 0x45835f
mov esi, dword [esi + 4]
mov ecx, dword [ebp + 0x234]
push 1
push esi
push 0x30
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp + 0x78]
push edx
mov esi, 0x9fa
call fcn.00423ae0
mov eax, dword [ebp + 0x20]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.00505471
mov ecx, dword [ebp + 0x20]
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x1f4
push 0x3ef
push ecx
call esi
mov edx, dword [ebp + 0x20]
push 0
push 0x64
push 0x3f0
push edx
call esi
mov ecx, ebp
call fcn.00458460
mov byte [esp + 0xc0], 1
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4583f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc0], 0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45841a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458445
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret