Function at 0x401680
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x254
mov eax, dword [0x414174]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
mov esi, dword [0x416098]
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0x1b8]
sub ecx, dword [esi + 0x1b0]
mov edx, dword [esi + 0x1b4]
sub edx, dword [esi + 0x1ac]
push ecx
push edx
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push edi
mov dword [esp + 0x30], 0
call sub.gdiplus.dll_GdipCreateFromHDC
mov eax, dword [esp + 0x28]
push 3
push eax
mov dword [esp + 0x50], eax
call sub.gdiplus.dll_GdipSetSmoothingMode
mov ebp, dword [esi + 0x1cc]
mov ecx, dword [esi + 0x1c8]
mov eax, dword [esi + 0x1d0]
imul ecx, ebp
mov edx, dword [esi + 0x1c4]
imul edx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x1b0]
mov dword [esp + 0x30], edx
fild dword [esp + 0x14]
mov edx, dword [esi + 0x1b4]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x1ac]
fstp dword [esp + 0x38]
fild dword [esp + 0x30]
sub edx, eax
push 0x208
push 0
fstp dword [esp + 0x44]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x1b8]
sub eax, ecx
fstp dword [esp + 0x48]
fild dword [esp + 0x1c]
fstp dword [esp + 0x4c]
fild dword [esp + 0x18]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x58]
push ecx
fstp dword [esp + 0x24]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
fstp dword [esp + 0x28]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x2c]
fild dword [esp + 0x1c]
fstp dword [esp + 0x30]
call fcn.004046b0
fld dword [esp + 0x30]
sub esp, 0x14
fstp qword [esp + 0x18]
fld dword [esp + 0x40]
fstp qword [esp + 0x10]
fld dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
fstp qword [esp + 8]
lea eax, [esp + 0x70]
fld dword [esp + 0x38]
fstp qword [esp]
push edx
push ebp
push str.iframeWidth_d_iframeHigh_d_rectDesk_d__d__d__d
push eax
call fcn.00402cfb
add esp, 0x30
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x401803
mov eax, dword [eax + 4]
jmp 0x401805
xor eax, eax
fld dword [esp + 0x44]
push 0
push 0
push 0
mov ebp, dword [esp + 0x54]
push 2
sub esp, 0x20
fstp dword [esp + 0x1c]
fld dword [esp + 0x70]
fstp dword [esp + 0x18]
fld dword [esp + 0x6c]
fstp dword [esp + 0x14]
fld dword [esp + 0x68]
fstp dword [esp + 0x10]
fld dword [esp + 0x54]
fstp dword [esp + 0xc]
fld dword [esp + 0x50]
fstp dword [esp + 8]
fld dword [esp + 0x4c]
fstp dword [esp + 4]
fld dword [esp + 0x48]
fstp dword [esp]
push eax
push ebp
call sub.gdiplus.dll_GdipDrawImageRectRect
mov edx, dword [esp + 0x2c]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esi + 4]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
inc dword [esi + 0x1c0]
cmp dword [esi + 0x1c0], 0x19
jb 0x40189c
mov dword [esi + 0x1c0], 0
mov eax, dword [esi + 0x1c0]
xor edx, edx
mov ecx, 5
div ecx
push ebp
mov dword [esi + 0x1c4], eax
mov dword [esi + 0x1c8], edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.00402bc1
add esp, 0x254
ret