Function at 0x4166c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x6ce8d4]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword fs:[0x2c]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [eax]
mov eax, dword [0x6dc5d0]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebx
cmp eax, dword [ecx + 4]
jle 0x416751
push 0x6dc5d0
call fcn.005bcb49
add esp, 4
cmp dword [0x6dc5d0], 0xffffffff
jne 0x416751
push str.AlphaBlend
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6dc5d0
mov dword [0x6dc5d4], eax
call fcn.005bcb0a
add esp, 4
cmp dword [esp + 0x20], 0
je 0x41780e
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esp + 0x20]
mov dword [esp + 0x20], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 4
push esi
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
cmp byte [ebp + 0x18], 0
xorps xmm0, xmm0
mov al, byte [ebp + 0x1c]
movups xmmword [esp + 0x6c], xmm0
movups xmmword [esp + 0x5c], xmm0
jne 0x417146
cmp al, 0xff
jb 0x417146
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov dword [esp + 0x28], eax
sub eax, dword [edx]
cmp eax, ecx
jne 0x416847
mov ecx, dword [edx + 0xc]
mov eax, dword [edi + 0xc]
sub ecx, dword [edx + 4]
sub eax, dword [edi + 4]
cmp ecx, eax
jne 0x416847
cmp dword [ebx], 0
jne 0x416847
cmp dword [ebx + 8], 0
jne 0x416847
cmp dword [ebx + 4], 0
jne 0x416847
cmp dword [ebx + 0xc], 0
jne 0x416847
push edx
push dword [esp + 0x30]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4177f6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x70]
mov eax, edx
push 0xcc0020
sub eax, dword [ecx + 4]
add eax, dword [edi + 4]
push eax
mov eax, dword [edi]
sub eax, dword [ecx]
mov ecx, dword [esp + 0x74]
add eax, ecx
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x88]
sub eax, edx
push eax
mov eax, dword [esp + 0x88]
sub eax, ecx
push eax
push edx
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4177f6
cmp byte [ebp + 0x20], 0
jne 0x416956
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x20]
mov ecx, dword [ecx + 4]
add edi, dword [ebx]
mov dword [esp + 0x5c], edi
lea esi, [ecx + edx]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x28]
sub esi, dword [ebx + 8]
sub esi, dword [ebx]
mov dword [esp + 0x28], esi
sub dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
sub eax, dword [ebx + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x28]
sub eax, edx
add ecx, edi
add eax, dword [esp + 0x60]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
mov dword [esp + 0x6c], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x41694e
cmp byte [ebp + 0x24], 0
jne 0x416f7a
cmp byte [ebp + 0x28], 0
jne 0x416ec0
mov ebx, dword [esp + 0x68]
sub ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
sub dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x18]
push 0xcc0020
mov esi, dword [eax + 4]
mov edi, dword [eax]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [ebx + 0xc]
mov ebx, dword [esp + 0x14]
sub eax, dword [ebx + 0xc]
sub eax, ecx
sub eax, esi
push eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
sub eax, dword [ebx + 8]
mov ebx, dword [esp + 0x70]
sub eax, edx
sub eax, edi
push eax
lea eax, [ecx + esi]
push eax
lea eax, [edx + edi]
push eax
push dword [esp + 0x30]
push ebx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov esi, dword [ebx]
test esi, esi
jle 0x4169d7
cmp dword [ebx + 4], 0
jle 0x416a8e
mov eax, dword [edx]
add esi, eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 4]
add eax, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
mov dword [esp + 0x6c], esi
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4169d7
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
sub eax, ecx
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
sub edx, esi
push 0xcc0020
push dword [ebx + 4]
mov dword [esp + 0x6c], edx
push dword [ebx]
mov dword [esp + 0x74], eax
push dword [edi + 4]
push dword [edi]
push dword [esp + 0x30]
push eax
push edx
push ecx
push esi
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp dword [ebx + 4], 0
jle 0x416a8e
mov eax, dword [esp + 0x14]
mov edx, dword [ebx]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, dword [ebx + 8]
sub eax, ecx
mov dword [esp + 0x60], esi
sub eax, edx
lea edi, [ecx + edx]
add eax, edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 4]
add eax, esi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x416a8e
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
push 0xcc0020
mov esi, dword [esp + 0x6c]
push dword [eax + 4]
mov edx, dword [eax]
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x6c]
sub esi, dword [esp + 0x68]
sub ebx, dword [esp + 0x64]
sub eax, dword [edi + 8]
mov edi, dword [esp + 0x68]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x6c], ebx
push eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x74], esi
push dword [eax + 4]
lea eax, [ecx + edx]
push eax
push dword [esp + 0x30]
push esi
push ebx
push edi
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
mov esi, dword [esp + 0x14]
test edx, edx
jle 0x416b2f
mov edi, dword [ebx + 4]
test edi, edi
jle 0x416b2f
mov eax, dword [esi + 4]
add edi, eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x60], eax
sub ecx, edx
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], ecx
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
mov dword [esp + 0x70], edi
add edx, ecx
push eax
mov dword [esp + 0x70], edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x416b2f
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x60]
sub edx, esi
mov edi, dword [esp + 0x64]
mov ecx, dword [eax + 8]
mov ebx, dword [esp + 0x5c]
sub edi, ebx
push 0xcc0020
push dword [eax + 4]
mov eax, dword [esp + 0x20]
push ecx
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edx
push dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, ecx
push eax
push dword [esp + 0x30]
push edx
push edi
push esi
push ebx
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp dword [ebx], 0
jle 0x416be7
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
mov edx, dword [ebx + 4]
mov edi, dword [esi]
mov ecx, dword [ecx + 0xc]
sub ecx, dword [ebx + 0xc]
lea esi, [eax + edx]
mov dword [esp + 0x5c], edi
sub ecx, eax
mov dword [esp + 0x60], esi
mov eax, dword [ebx]
sub ecx, edx
add eax, edi
add ecx, esi
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
mov dword [esp + 0x70], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x416be7
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x68]
mov ebx, dword [esp + 0x64]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x18]
sub esi, dword [esp + 0x60]
sub ebx, dword [esp + 0x5c]
push 0xcc0020
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub eax, dword [edi + 0xc]
sub eax, ecx
mov dword [esp + 0x68], ebx
sub eax, edx
mov dword [esp + 0x6c], esi
push eax
mov eax, edi
mov edi, dword [esp + 0x68]
push dword [eax]
lea eax, [ecx + edx]
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
push dword [esp + 0x30]
push esi
push ebx
push edi
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 8]
test eax, eax
jle 0x416cab
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 4]
mov edi, dword [ecx + 8]
sub edi, eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
sub ecx, eax
mov dword [esp + 0x5c], edi
sub ecx, dword [ebx + 0xc]
lea esi, [eax + edx]
sub ecx, edx
mov eax, dword [ebx + 8]
add ecx, esi
add eax, edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
mov dword [esp + 0x70], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x416cab
mov eax, dword [esp + 0x5c]
sub dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x68]
sub edi, dword [esp + 0x60]
mov esi, dword [eax + 8]
mov edx, dword [eax + 4]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0xc]
mov ebx, dword [esp + 0x10]
sub eax, ecx
push 0xcc0020
sub eax, edx
mov dword [esp + 0x6c], edi
sub eax, dword [ebx + 0xc]
push eax
mov ebx, dword [esp + 0x68]
lea eax, [ecx + edx]
push esi
push eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
sub eax, esi
push eax
push dword [esp + 0x30]
push edi
push dword [esp + 0x80]
push ebx
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx]
mov esi, dword [esp + 0x14]
test edi, edi
jle 0x416d4c
mov edx, dword [ebx + 0xc]
test edx, edx
jle 0x416d4c
mov eax, dword [esi]
add edi, eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x5c], eax
sub ecx, edx
lea eax, [esp + 0x5c]
mov dword [esp + 0x60], ecx
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
mov dword [esp + 0x6c], edi
add edx, ecx
push eax
mov dword [esp + 0x74], edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x416d4c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x60]
sub edx, esi
mov edi, dword [esp + 0x64]
mov ecx, dword [eax + 0xc]
push 0xcc0020
mov ebx, dword [esp + 0x60]
sub edi, ebx
push ecx
push dword [eax]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edx
mov eax, dword [eax + 0xc]
sub eax, ecx
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
push dword [esp + 0x30]
push edx
push edi
push esi
push ebx
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x416e0e
mov ecx, dword [esi]
mov esi, dword [esi + 0xc]
mov edx, dword [ebx]
sub esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x60], esi
lea edi, [ecx + edx]
mov eax, dword [eax + 8]
sub eax, ecx
mov dword [esp + 0x5c], edi
sub eax, edx
sub eax, dword [ebx + 8]
add eax, edi
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0xc]
add eax, esi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
push eax
call edi
test eax, eax
je 0x416e14
mov eax, dword [esp + 0x5c]
sub dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x68]
sub edi, dword [esp + 0x60]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
mov eax, dword [esp + 0x18]
push 0xcc0020
push ecx
mov dword [esp + 0x70], edi
mov edx, dword [eax]
mov eax, dword [eax + 8]
sub eax, edx
sub eax, esi
sub eax, dword [ebx + 8]
push eax
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x6c]
mov eax, dword [eax + 0xc]
sub eax, ecx
push eax
lea eax, [edx + esi]
push eax
push dword [esp + 0x30]
push edi
push dword [esp + 0x80]
push ebx
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
mov edx, dword [ebx + 8]
test edx, edx
jle 0x4177f6
mov esi, dword [ebx + 0xc]
test esi, esi
jle 0x4177f6
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
sub ecx, edx
sub eax, esi
mov dword [esp + 0x5c], ecx
add esi, eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x68], esi
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
add edx, ecx
push eax
mov dword [esp + 0x70], edx
call edi
test eax, eax
je 0x4177f6
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x60]
sub esi, edi
mov ebx, dword [esp + 0x64]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x18]
sub ebx, dword [esp + 0x5c]
push 0xcc0020
push ecx
mov eax, dword [eax + 0xc]
push edx
sub eax, ecx
mov dword [esp + 0x70], ebx
push eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x78], esi
mov eax, dword [eax + 8]
sub eax, edx
push eax
push dword [esp + 0x30]
push esi
push ebx
push edi
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x4177f6
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
mov esi, dword [edi + 0xc]
sub esi, dword [ebx + 0xc]
sub esi, dword [ebx + 4]
sub esi, dword [edi + 4]
mov eax, esi
mov dword [esp + 0x38], esi
sub eax, dword [esp + 0x60]
dec eax
add eax, ecx
cdq
idiv esi
mov dword [esp + 0x20], eax
test eax, eax
jle 0x416952
xor eax, eax
mov edx, dword [esp + 0x60]
lea edi, [eax + edx]
add eax, esi
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x30], eax
lea esi, [eax + edx]
mov edx, dword [esp + 0x38]
mov eax, edx
cmp esi, ecx
jle 0x416f1a
sub eax, esi
mov esi, ecx
add eax, ecx
mov ecx, dword [edi]
mov edx, dword [ebx]
push 0xcc0020
push eax
mov eax, dword [edi + 8]
sub eax, dword [ebx + 8]
sub eax, ecx
sub eax, edx
push eax
mov eax, dword [ebx + 4]
add eax, dword [edi + 4]
push eax
lea eax, [ecx + edx]
push eax
push dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
sub esi, eax
push esi
push dword [esp + 0x80]
push eax
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_StretchBlt]
sub dword [esp + 0x20], 1
je 0x416952
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
jmp 0x416ef2
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
mov esi, dword [edi + 8]
sub esi, dword [ebx]
sub esi, dword [edi]
sub esi, dword [ebx + 8]
cmp byte [ebp + 0x28], 0
je 0x417099
mov eax, dword [edi + 0xc]
dec ecx
sub eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
sub eax, dword [edi + 4]
mov dword [esp + 0x38], eax
mov eax, esi
sub eax, dword [esp + 0x5c]
add eax, ecx
mov dword [esp + 0x34], esi
cdq
idiv esi
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x60]
sub ecx, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
dec eax
add eax, ecx
cdq
idiv dword [esp + 0x38]
mov dword [esp + 0x40], eax
test eax, eax
jle 0x416952
mov ecx, dword [esp + 0x68]
xor eax, eax
mov dword [esp + 0x3c], eax
nop word [eax + eax]
mov ebx, dword [esp + 0x10]
lea edx, [eax + esi]
add eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
add eax, esi
cmp eax, ecx
cmovg eax, ecx
cmp dword [esp + 0x20], 0
jle 0x417081
sub eax, edx
xor ecx, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
nop dword [eax]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x18]
push 0xcc0020
lea edx, [ecx + eax]
add ecx, dword [esp + 0x38]
mov dword [esp + 0x48], ecx
add ecx, eax
cmp ecx, dword [esp + 0x68]
mov eax, dword [ebx + 4]
cmovg ecx, dword [esp + 0x68]
add eax, dword [edi + 4]
sub ecx, edx
push eax
mov eax, dword [ebx]
add eax, dword [edi]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
push dword [esp + 0x40]
add eax, esi
push ecx
push eax
push edx
push dword [esp + 0x44]
call dword [sym.imp.GDI32.dll_BitBlt]
sub dword [esp + 0x28], 1
mov esi, dword [esp + 0x60]
je 0x41707d
mov ecx, dword [esp + 0x44]
jmp 0x417020
mov ecx, dword [esp + 0x68]
sub dword [esp + 0x40], 1
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
jne 0x416ff0
jmp 0x416952
mov eax, esi
mov dword [esp + 0x20], esi
sub eax, dword [esp + 0x5c]
dec eax
add eax, ecx
cdq
idiv esi
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x416952
xor eax, eax
mov edx, dword [esp + 0x5c]
lea edi, [eax + edx]
add eax, esi
mov dword [esp + 0x30], eax
add eax, edx
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x40], eax
cmp eax, ecx
jle 0x4170e2
mov esi, dword [esp + 0x20]
sub esi, eax
mov dword [esp + 0x40], ecx
add esi, ecx
mov eax, dword [edi + 0xc]
sub eax, dword [ebx + 0xc]
mov ecx, dword [edi + 4]
sub eax, ecx
mov edx, dword [ebx + 4]
sub eax, edx
push 0xcc0020
push eax
push esi
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x40]
push eax
mov eax, dword [ebx]
add eax, dword [edi]
push eax
push dword [esp + 0x30]
mov eax, dword [esp + 0x58]
push dword [esp + 0x80]
sub eax, ecx
push eax
push dword [esp + 0x80]
push ecx
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_StretchBlt]
sub dword [esp + 0x3c], 1
je 0x416952
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
jmp 0x4170b7
cmp byte [ebp + 0x20], 0
mov word [esp + 0x28], 0
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 1
mov esi, dword [esp + 0x28]
jne 0x41725b
mov edx, dword [esp + 0x14]
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
mov eax, dword [edx]
lea ecx, [eax + edi]
mov dword [esp + 0x5c], ecx
mov ecx, dword [edx + 4]
lea edx, [ecx + ebx]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 8]
sub edx, eax
mov eax, dword [esp + 0x10]
sub edx, edi
mov edi, dword [esp + 0x14]
sub edx, dword [eax + 8]
mov eax, dword [edi + 0xc]
add edx, dword [esp + 0x5c]
sub eax, ecx
sub eax, ebx
mov dword [esp + 0x64], edx
mov ebx, dword [esp + 0x10]
sub eax, dword [ebx + 0xc]
add eax, dword [esp + 0x60]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x41725f
cmp byte [ebp + 0x24], 0
jne 0x4178e2
cmp byte [ebp + 0x28], 0
jne 0x417820
mov eax, dword [esp + 0x5c]
sub dword [esp + 0x64], eax
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x18]
mov edi, dword [ebx + 4]
mov ebx, dword [ebx]
push esi
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [eax + 0xc]
mov esi, dword [esp + 0x14]
sub eax, ecx
sub eax, edi
sub eax, dword [esi + 0xc]
push eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
sub eax, edx
sub eax, ebx
sub eax, dword [esi + 8]
push eax
lea eax, [ecx + edi]
push eax
lea eax, [edx + ebx]
push eax
push dword [esp + 0x30]
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [0x6dc5d4]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov edx, dword [ebx]
test edx, edx
jle 0x4172e4
cmp dword [ebx + 4], 0
jle 0x4173a3
mov eax, dword [edi]
add edx, eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 4]
add eax, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
mov dword [esp + 0x6c], edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4172e4
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
sub eax, ecx
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x5c]
sub edx, edi
push esi
push dword [ebx + 4]
mov esi, dword [esp + 0x20]
push dword [ebx]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
push dword [esi + 4]
push dword [esi]
push dword [esp + 0x30]
push eax
push edx
push ecx
push edi
push dword [esp + 0x4c]
call dword [0x6dc5d4]
mov esi, dword [esp + 0x28]
cmp dword [ebx + 4], 0
jle 0x4173a3
mov eax, dword [esp + 0x14]
mov edx, dword [ebx]
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, ecx
mov dword [esp + 0x60], edi
lea ebx, [ecx + edx]
sub eax, edx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], ebx
sub eax, dword [ecx + 8]
add eax, ebx
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 4]
add eax, edi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x41739f
mov eax, dword [esp + 0x5c]
sub dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx]
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x68]
sub edi, ebx
mov eax, dword [eax + 8]
sub eax, ecx
mov dword [esp + 0x70], edi
sub eax, edx
sub eax, dword [esi + 8]
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 4]
lea eax, [ecx + edx]
push eax
push dword [esp + 0x30]
push edi
push dword [esp + 0x80]
push ebx
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [0x6dc5d4]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
mov edi, dword [esp + 0x14]
test edx, edx
jle 0x417446
cmp dword [ebx + 4], 0
jle 0x417446
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
sub ecx, edx
add edx, ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx + 4]
add ecx, eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x64], edx
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
mov dword [esp + 0x70], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x417446
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x60]
sub edx, edi
mov ebx, dword [esp + 0x64]
mov ecx, dword [eax + 8]
sub ebx, dword [esp + 0x5c]
push esi
push dword [eax + 4]
mov eax, dword [esp + 0x20]
push ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], edx
push dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, ecx
push eax
push dword [esp + 0x30]
push edx
push ebx
push edi
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [0x6dc5d4]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, dword [ebx]
mov dword [esp + 0x4c], eax
test eax, eax
jle 0x41750d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [edi]
mov dword [esp + 0x5c], ebx
mov edx, dword [eax + 4]
mov eax, dword [edi + 4]
mov ecx, dword [ecx + 0xc]
sub ecx, eax
sub ecx, edx
lea edi, [eax + edx]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x60], edi
sub ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x4c]
add ecx, edi
add eax, ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x417509
mov eax, dword [esp + 0x5c]
sub dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x6c]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x64]
sub edi, ebx
mov dword [esp + 0x6c], edi
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub eax, ecx
sub eax, edx
sub eax, dword [esi + 0xc]
push eax
mov eax, esi
push dword [eax]
lea eax, [ecx + edx]
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
push dword [esp + 0x30]
push edi
push dword [esp + 0x80]
push ebx
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [0x6dc5d4]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 8]
mov dword [esp + 0x4c], eax
test eax, eax
jle 0x4175e4
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx + 8]
sub ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], ebx
mov edx, dword [eax + 4]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
sub ecx, eax
sub ecx, edx
lea edi, [eax + edx]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x60], edi
sub ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x4c]
add ecx, edi
add eax, ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4175e0
mov eax, dword [esp + 0x5c]
sub dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x68]
push esi
mov edi, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
mov esi, dword [esp + 0x14]
sub ebx, dword [esp + 0x64]
mov eax, dword [eax + 0xc]
sub eax, ecx
mov dword [esp + 0x6c], ebx
sub eax, edx
sub eax, dword [esi + 0xc]
push eax
push edi
lea eax, [ecx + edx]
push eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
sub eax, edi
push eax
push dword [esp + 0x30]
push ebx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [0x6dc5d4]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x20], eax
test eax, eax
jle 0x41768f
mov edx, dword [ebx + 0xc]
test edx, edx
jle 0x41768f
mov eax, dword [edi]
add dword [esp + 0x20], eax
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x5c], eax
sub ecx, edx
mov eax, dword [esp + 0x20]
add edx, ecx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
mov dword [esp + 0x68], ecx
push eax
mov dword [esp + 0x74], edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x41768f
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x60]
sub edx, edi
mov ebx, dword [esp + 0x64]
mov ecx, dword [eax + 0xc]
push esi
sub ebx, dword [esp + 0x60]
push ecx
push dword [eax]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], edx
mov eax, dword [eax + 0xc]
sub eax, ecx
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
push dword [esp + 0x30]
push edx
push ebx
push edi
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [0x6dc5d4]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x417755
mov ecx, dword [edi]
mov edi, dword [edi + 0xc]
mov edx, dword [ebx]
sub edi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x60], edi
lea ebx, [ecx + edx]
mov eax, dword [eax + 8]
sub eax, ecx
mov dword [esp + 0x5c], ebx
mov ecx, dword [esp + 0x10]
sub eax, edx
sub eax, dword [ecx + 8]
add eax, ebx
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 0xc]
add eax, edi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x417751
mov eax, dword [esp + 0x5c]
sub dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, dword [esp + 0x1c]
sub ebx, dword [esp + 0x64]
push ecx
mov dword [esp + 0x70], ebx
mov edx, dword [eax]
mov eax, dword [eax + 8]
sub eax, edx
sub eax, edi
sub eax, dword [esi + 8]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
sub eax, ecx
push eax
lea eax, [edx + edi]
push eax
push dword [esp + 0x30]
push ebx
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [0x6dc5d4]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
test edx, edx
jle 0x4177f6
mov edi, dword [ebx + 0xc]
test edi, edi
jle 0x4177f6
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
sub ecx, edx
sub eax, edi
mov dword [esp + 0x5c], ecx
add edi, eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x68], edi
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x74]
add edx, ecx
push eax
mov dword [esp + 0x70], edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4177f6
mov eax, dword [esp + 0x5c]
sub dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x60]
sub edi, ebx
push esi
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov esi, dword [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x74], edi
mov eax, dword [esi + 0xc]
sub eax, ecx
push eax
mov eax, dword [esi + 8]
sub eax, edx
push eax
push dword [esp + 0x30]
push edi
push dword [esp + 0x80]
push ebx
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [0x6dc5d4]
push dword [esp + 0x58]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x68]
dec edx
mov ecx, dword [edi + 0xc]
sub ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 4]
sub ecx, dword [edi + 4]
mov eax, ecx
mov dword [esp + 0x20], ecx
sub eax, dword [esp + 0x60]
add eax, edx
cdq
idiv ecx
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x41725b
xor eax, eax
mov edx, dword [esp + 0x60]
lea esi, [eax + edx]
add eax, ecx
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x30], eax
lea ecx, [eax + edx]
mov edx, dword [esp + 0x20]
mov eax, edx
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x68]
jle 0x417886
sub eax, ecx
mov ecx, dword [esp + 0x68]
add eax, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [edi]
mov edx, dword [ebx]
push esi
push eax
mov eax, dword [edi + 8]
sub eax, ecx
sub eax, edx
sub eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
add eax, dword [edi + 4]
push eax
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x44]
push eax
push dword [esp + 0x30]
mov eax, dword [esp + 0x58]
sub eax, ecx
push eax
push dword [esp + 0x80]
push ecx
push dword [esp + 0x80]
push dword [esp + 0x4c]
call dword [0x6dc5d4]
sub dword [esp + 0x3c], 1
je 0x41725b
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
jmp 0x417852
cmp byte [ebp + 0x28], 0
mov edi, dword [esp + 0x18]
je 0x417a2a
mov ecx, dword [edi + 0xc]
sub ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 4]
sub ecx, dword [edi + 4]
mov eax, dword [edi + 8]
sub eax, dword [ebx]
sub eax, dword [edi]
sub eax, dword [ebx + 8]
mov dword [esp + 0x20], eax
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x64]
dec ecx
add eax, ecx
mov ecx, dword [esp + 0x38]
cdq
idiv dword [esp + 0x20]
sub ecx, dword [esp + 0x60]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
dec eax
add eax, ecx
cdq
idiv dword [esp + 0x38]
mov dword [esp + 0x34], eax
test eax, eax
jle 0x41725b
mov eax, dword [esp + 0x60]
xor edx, edx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x30], edx
lea esi, [edx + eax]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x38]
add edx, esi
mov dword [esp + 0x4c], edx
add edx, eax
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x28]
cmp edx, ecx
jle 0x417981
mov ecx, dword [esp + 0x38]
sub ecx, edx
mov edx, dword [esp + 0x68]
add ecx, edx
mov dword [esp + 0x3c], ecx
mov ecx, edx
cmp dword [esp + 0x40], 0
jle 0x417a12
sub edx, dword [esp + 0x44]
xor ecx, ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], eax
nop
mov eax, dword [esp + 0x5c]
lea edx, [ecx + eax]
add ecx, dword [esp + 0x20]
mov dword [esp + 0x50], ecx
add ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x64]
cmp ecx, edx
jle 0x4179c7
sub eax, ecx
mov ecx, edx
add eax, edx
sub ecx, dword [esp + 0x48]
push esi
push dword [esp + 0x40]
push eax
mov eax, dword [ebx + 4]
add eax, dword [edi + 4]
push eax
mov eax, dword [ebx]
add eax, dword [edi]
push eax
push dword [esp + 0x30]
mov eax, dword [esp + 0x48]
push dword [esp + 0x6c]
add eax, dword [esp + 0x7c]
push ecx
push eax
push dword [esp + 0x6c]
push dword [esp + 0x4c]
call dword [0x6dc5d4]
sub dword [esp + 0x44], 1
je 0x417a0a
mov ecx, dword [esp + 0x50]
jmp 0x4179a0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
sub dword [esp + 0x34], 1
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x30], edx
jne 0x417950
jmp 0x41725b
mov ecx, dword [edi + 8]
sub ecx, dword [ebx]
sub ecx, dword [edi]
sub ecx, dword [ebx + 8]
mov edx, dword [esp + 0x64]
mov eax, ecx
sub eax, dword [esp + 0x5c]
dec edx
add eax, edx
mov dword [esp + 0x48], ecx
cdq
idiv ecx
mov dword [esp + 0x44], eax
test eax, eax
jle 0x41725b
xor eax, eax
mov edx, dword [esp + 0x5c]
lea esi, [eax + edx]
add eax, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x28]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
cmp ecx, edx
jle 0x417a8e
sub eax, ecx
mov dword [esp + 0x30], edx
add eax, edx
mov dword [esp + 0x34], eax
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [ebx + 4]
sub eax, ecx
push esi
sub eax, edx
sub eax, dword [ebx + 0xc]
push eax
push dword [esp + 0x3c]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [ebx]
add eax, dword [edi]
push eax
push dword [esp + 0x30]
mov eax, dword [esp + 0x48]
push dword [esp + 0x80]
sub eax, ecx
push eax
push dword [esp + 0x80]
push ecx
push dword [esp + 0x4c]
call dword [0x6dc5d4]
sub dword [esp + 0x44], 1
je 0x41725b
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
jmp 0x417a56