Function at 0x4a105a
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x68
mov eax, dword [0x4d9540]
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.0049e420
lea eax, [esp + 0x1c]
push 0x6d
push eax
mov ecx, esi
call fcn.0049e420
mov ecx, dword [0x4d9540]
mov edx, str._s__d__s__d
test edx, edx
mov dword [esp + 0x10], ecx
je 0x4a10dc
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x4a10dc
push edi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x4a10dc
mov eax, dword [esp + 0x10]
inc edi
push edi
push str._s__d__s__d
push eax
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
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.00401a70
mov eax, dword [esp + 0x28]
mov edx, dword [0x4d9544]
add esp, 0x18
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a1136
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a1136
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
test esi, esi
je 0x4a113f
lea edi, [esi + 0x1c]
jmp 0x4a1141
xor edi, edi
lea eax, [esp + 0x58]
lea edx, [esp + 0x18]
push eax
push ecx
mov ecx, esp
push edx
call fcn.00401200
lea eax, [esp + 0x88]
push edi
push eax
mov ecx, esi
call fcn.0049c040
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.004c64c8
fild dword [esp + 0x58]
mov dword [esp + 0x10], eax
fdiv qword [esp + 0x34]
fchs
call fcn.004c64c8
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 [0x4ea78c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x4a122e
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 0x4a1276
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 0x4a1270
mov edx, dword [esp + 0x80]
push 0xffffff
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a1276
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 [0x4ea78c]
test eax, eax
je 0x4a12be
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.0044bd20
test al, al
je 0x4a12be
mov eax, dword [esi + 0x478]
push 0
push eax
call fcn.0044bd80
add esp, 8
mov eax, dword [esi + 0x474]
cmp ebp, eax
mov dword [esp + 0x24], eax
jae 0x4a14dc
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 0x4a14be
mov ecx, dword [esp + 0x7c]
dec eax
cmp ecx, eax
jne 0x4a13ff
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.004c64c8
fild dword [esp + 0x68]
mov ebp, eax
fmul st(1)
call fcn.004c64c8
fild dword [esp + 0x74]
mov dword [esp + 0x68], eax
fmul st(1)
call fcn.004c64c8
fild dword [esp + 0x70]
mov dword [esp + 0x74], eax
fmul st(1)
call fcn.004c64c8
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 0x4a14b8
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.004c64c8
fild dword [esp + 0x68]
mov ebp, eax
fmul st(1)
call fcn.004c64c8
fild dword [esp + 0x74]
mov dword [esp + 0x68], eax
fmul st(1)
call fcn.004c64c8
fild dword [esp + 0x70]
mov dword [esp + 0x74], eax
fmul st(1)
call fcn.004c64c8
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 [0x4d9540]
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.00401a70
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 [0x4d4bc0]
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.004c64c8
fild dword [esp + 0x40]
mov dword [esp + 0x3c], eax
fmul qword [esp + 0x34]
fmul qword [0x4d4bc0]
call fcn.004c64c8
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 0x4a15f5
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 0x4a1630
mov eax, dword [esi + 0x448]
test eax, eax
je 0x4a1630
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 [0x4ea78c]
test eax, eax
je 0x4a167d
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x478]
push ecx
push 0
push 0x1001
push edx
call ebx
call fcn.0044bd20
test al, al
je 0x4a167d
mov eax, dword [esi + 0x478]
push 1
push eax
call fcn.0044bd80
add esp, 8
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a16b0
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a16b6
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
jmp 0x4a16b6
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a16e1
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a16e1
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a170c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a170c
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a1737
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a1737
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x68
ret 8