Function at 0x4ff69a
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x68
mov eax, dword [0x547570]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x20]
mov dword [esp + 0x80], ecx
push 0xf1
push edx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.004fca60
lea eax, [esp + 0x1c]
push 0x6d
push eax
mov ecx, esi
call fcn.004fca60
mov ecx, dword [0x547570]
mov edx, str._s__d__s__d
test edx, edx
mov dword [esp + 0x10], ecx
je 0x4ff71c
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x4ff71c
push edi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4ff71c
mov eax, dword [esp + 0x10]
inc edi
push edi
push str._s__d__s__d
push eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov ebp, dword [esp + 0x7c]
mov ecx, dword [esi + 0x390]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [ebp + 1]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00405cb0
mov eax, dword [esp + 0x28]
mov edx, dword [0x547574]
add esp, 0x18
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ff776
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ff776
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
test esi, esi
je 0x4ff77f
lea edi, [esi + 0x1c]
jmp 0x4ff781
xor edi, edi
lea eax, [esp + 0x58]
lea edx, [esp + 0x18]
push eax
push ecx
mov ecx, esp
push edx
call fcn.00405440
lea eax, [esp + 0x88]
push edi
push eax
mov ecx, esi
call fcn.004fa680
mov eax, dword [esp + 0x80]
mov ecx, dword [esi + 0x358]
mov edx, dword [esi + 0x35c]
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call dword [sym.imp.GDI32.dll_SaveDC]
fild dword [esp + 0x5c]
fdiv qword [esp + 0x34]
fchs
call fcn.005332c8
fild dword [esp + 0x58]
mov dword [esp + 0x10], eax
fdiv qword [esp + 0x34]
fchs
call fcn.005332c8
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x88]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [0x55bb54]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x4ff86e
mov eax, dword [esi + 0x478]
push 0
push 0
push 0x1025
push eax
call ebx
mov ecx, dword [esp + 0x80]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ff8b6
mov eax, dword [esp + 0x80]
push 0
push 0
lea edx, [esp + 0x60]
push 0
push edx
push 2
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [esp + 0x80]
push edi
push ecx
jmp 0x4ff8b0
mov edx, dword [esp + 0x80]
push 0xffffff
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ff8b6
mov ecx, dword [esp + 0x80]
push 0
push 0
lea eax, [esp + 0x60]
push 0
push eax
push 2
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [esp + 0x80]
push edi
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [0x55bb54]
test eax, eax
je 0x4ff8fe
mov edi, dword [esi + 0x478]
push 0
push 0
push 0x1000
push edi
call ebx
push 0xffffff
push 0
push 0x1001
push edi
mov dword [esp + 0x40], eax
call ebx
call fcn.00457150
test al, al
je 0x4ff8fe
mov eax, dword [esi + 0x478]
push 0
push eax
call fcn.004571c0
add esp, 8
mov eax, dword [esi + 0x474]
cmp ebp, eax
mov dword [esp + 0x24], eax
jae 0x4ffb1c
mov edx, dword [esi + 0x470]
lea ecx, [ebp + ebp*2]
mov edi, dword [esi + 0x478]
push 0
lea eax, [edx + ecx*4]
push 0
push 0x1004
push edi
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x60], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x64], eax
call ebx
push 0
push 0
push 0x1027
push edi
mov ebp, eax
call ebx
push 0
push 0
push 0x1013
push edi
call ebx
dec ebp
push 0
push ebp
push 0x1013
push edi
mov dword [esp + 0x38], ebp
call ebx
mov eax, dword [esp + 0x24]
cmp eax, 1
jle 0x4ffafe
mov ecx, dword [esp + 0x7c]
dec eax
cmp ecx, eax
jne 0x4ffa3f
mov eax, dword [esi + 0x460]
mov edx, dword [esi + 0x468]
mov ecx, dword [esi + 0x45c]
sub edx, eax
push 0
push edx
mov edx, dword [esi + 0x464]
sub edx, ecx
push edx
push eax
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x45c]
fld qword [esp + 0x34]
mov edx, dword [esi + 0x464]
mov dword [esp + 0x6c], ecx
fild dword [esp + 0x6c]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x468]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
fmul st(1)
call fcn.005332c8
fild dword [esp + 0x68]
mov ebp, eax
fmul st(1)
call fcn.005332c8
fild dword [esp + 0x74]
mov dword [esp + 0x68], eax
fmul st(1)
call fcn.005332c8
fild dword [esp + 0x70]
mov dword [esp + 0x74], eax
fmul st(1)
call fcn.005332c8
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x74]
add ebp, ecx
add edx, ecx
mov ecx, dword [esp + 0x68]
push edx
add ecx, dword [esp + 0x5c]
add eax, dword [esp + 0x5c]
fstp st(0)
push eax
push ebp
push ecx
mov ecx, dword [esp + 0x90]
push ecx
jmp 0x4ffaf8
mov eax, dword [esi + 0x450]
mov edx, dword [esi + 0x458]
mov ecx, dword [esi + 0x44c]
sub edx, eax
push 0
push edx
mov edx, dword [esi + 0x454]
sub edx, ecx
push edx
push eax
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x450]
mov eax, dword [esi + 0x44c]
fld qword [esp + 0x34]
mov edx, dword [esi + 0x454]
mov dword [esp + 0x6c], ecx
fild dword [esp + 0x6c]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x458]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
fmul st(1)
call fcn.005332c8
fild dword [esp + 0x68]
mov ebp, eax
fmul st(1)
call fcn.005332c8
fild dword [esp + 0x74]
mov dword [esp + 0x68], eax
fmul st(1)
call fcn.005332c8
fild dword [esp + 0x70]
mov dword [esp + 0x74], eax
fmul st(1)
call fcn.005332c8
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x10]
add edx, ecx
add ebp, edx
mov edx, dword [esp + 0x74]
add edx, ecx
mov ecx, dword [esp + 0x68]
add ecx, dword [esp + 0x58]
add eax, dword [esp + 0x58]
push edx
push eax
mov eax, dword [esp + 0x88]
push ebp
push ecx
fstp st(0)
push eax
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov ecx, dword [esp + 0x28]
push 0
push ecx
push 0x1013
push edi
call ebx
mov edx, dword [esp + 0x50]
push 0
push edx
push 0x1013
push edi
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x80]
push 0
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_OffsetWindowOrgEx]
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
mov ecx, dword [esp + 0x80]
push 8
push ecx
call dword [sym.imp.GDI32.dll_SetMapMode]
mov edx, dword [0x547570]
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x14], edx
push eax
push ecx
lea edx, [esp + 0x1c]
push str._d__d__n
push edx
call fcn.00405cb0
mov eax, dword [esp + 0x24]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x44]
fild dword [esp + 0x3c]
lea eax, [eax + eax*2]
fmul qword [esp + 0x34]
lea edi, [eax + eax*4]
mov eax, dword [esp + 0x48]
fmul qword [0x542ef8]
lea eax, [eax + eax*2]
lea edi, [edi + edi*4]
shl edi, 3
lea ebp, [eax + eax*4]
mov dword [esp + 0x44], edi
lea ebp, [ebp + ebp*4]
shl ebp, 3
mov dword [esp + 0x48], ebp
call fcn.005332c8
fild dword [esp + 0x40]
mov dword [esp + 0x3c], eax
fmul qword [esp + 0x34]
fmul qword [0x542ef8]
call fcn.005332c8
mov ecx, dword [esp + 0x80]
push 0
push ebp
push edi
push ecx
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x80]
push 0
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4ffc35
mov edx, dword [esp + 0x80]
push 4
push edx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov edi, dword [esi + 0x478]
push 0
push 0
push 0x101f
push edi
call ebx
test eax, eax
je 0x4ffc70
mov eax, dword [esi + 0x448]
test eax, eax
je 0x4ffc70
push 0
push 0
push 0x101f
push edi
call ebx
mov ecx, dword [esp + 0x80]
push 0
push ecx
push 0xf
push eax
call ebx
mov edx, dword [esp + 0x80]
mov eax, dword [esi + 0x478]
push 0
push edx
push 0xf
push eax
call ebx
mov eax, dword [0x55bb54]
test eax, eax
je 0x4ffcbd
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x478]
push ecx
push 0
push 0x1001
push edx
call ebx
call fcn.00457150
test al, al
je 0x4ffcbd
mov eax, dword [esi + 0x478]
push 1
push eax
call fcn.004571c0
add esp, 8
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ffcf0
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4ffcf6
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
jmp 0x4ffcf6
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ffd21
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4ffd21
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ffd4c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4ffd4c
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ffd77
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4ffd77
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x68
ret 8