Function at 0x4feaba
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x68
mov eax, dword [0x546560]
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.004fbe80
lea eax, [esp + 0x1c]
push 0x6d
push eax
mov ecx, esi
call fcn.004fbe80
mov ecx, dword [0x546560]
mov edx, str._s__d__s__d
test edx, edx
mov dword [esp + 0x10], ecx
je 0x4feb3c
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x4feb3c
push edi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4feb3c
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 [0x546564]
add esp, 0x18
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4feb96
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4feb96
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
test esi, esi
je 0x4feb9f
lea edi, [esi + 0x1c]
jmp 0x4feba1
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.004f9aa0
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.005327d8
fild dword [esp + 0x58]
mov dword [esp + 0x10], eax
fdiv qword [esp + 0x34]
fchs
call fcn.005327d8
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 [0x55aab4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x4fec8e
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 0x4fecd6
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 0x4fecd0
mov edx, dword [esp + 0x80]
push 0xffffff
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edi, eax
cmp edi, 0xffffffff
je 0x4fecd6
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 [0x55aab4]
test eax, eax
je 0x4fed1e
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.00456a50
test al, al
je 0x4fed1e
mov eax, dword [esi + 0x478]
push 0
push eax
call fcn.00456ac0
add esp, 8
mov eax, dword [esi + 0x474]
cmp ebp, eax
mov dword [esp + 0x24], eax
jae 0x4fef3c
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 0x4fef1e
mov ecx, dword [esp + 0x7c]
dec eax
cmp ecx, eax
jne 0x4fee5f
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.005327d8
fild dword [esp + 0x68]
mov ebp, eax
fmul st(1)
call fcn.005327d8
fild dword [esp + 0x74]
mov dword [esp + 0x68], eax
fmul st(1)
call fcn.005327d8
fild dword [esp + 0x70]
mov dword [esp + 0x74], eax
fmul st(1)
call fcn.005327d8
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 0x4fef18
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.005327d8
fild dword [esp + 0x68]
mov ebp, eax
fmul st(1)
call fcn.005327d8
fild dword [esp + 0x74]
mov dword [esp + 0x68], eax
fmul st(1)
call fcn.005327d8
fild dword [esp + 0x70]
mov dword [esp + 0x74], eax
fmul st(1)
call fcn.005327d8
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 [0x546560]
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 [0x541ef8]
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.005327d8
fild dword [esp + 0x40]
mov dword [esp + 0x3c], eax
fmul qword [esp + 0x34]
fmul qword [0x541ef8]
call fcn.005327d8
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 0x4ff055
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 0x4ff090
mov eax, dword [esi + 0x448]
test eax, eax
je 0x4ff090
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 [0x55aab4]
test eax, eax
je 0x4ff0dd
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x478]
push ecx
push 0
push 0x1001
push edx
call ebx
call fcn.00456a50
test al, al
je 0x4ff0dd
mov eax, dword [esi + 0x478]
push 1
push eax
call fcn.00456ac0
add esp, 8
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ff110
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4ff116
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x4ff116
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ff141
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4ff141
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ff16c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4ff16c
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ff197
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4ff197
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x68
ret 8