Function at 0x70d83e70
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
cmp dword [ebp + 0x24], 2
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x34], ecx
jne 0x70d84010
test esi, esi
je 0x70d83ff8
test ebx, ebx
je 0x70d83ff8
cmp dword [ebp + 8], esi
jg 0x70d840f8
cmp dword [ebp + 0xc], ebx
jg 0x70d840f8
mov dword [esp + 4], 4
mov edi, eax
mov dword [esp], eax
call sym._SetStretchBltMode_8
sub esp, 8
mov ebx, eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call sym._SetBrushOrgEx_16
sub esp, 0x10
cmp dword [ebp + 0x28], 1
je 0x70d844e0
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x70d83f5a
mov eax, dword [0x70d9a788]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._AlphaBlend_44
sub esp, 0x2c
test eax, eax
jne 0x70d84550
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], 0xcc0020
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._StretchBlt_44
sub esp, 0x2c
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0
mov dword [ebp - 0x30], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._SetBrushOrgEx_16
sub esp, 0x10
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._SetStretchBltMode_8
mov edx, dword [ebp - 0x30]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov edx, 1
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], 4
mov dword [esp], eax
call sym._SetStretchBltMode_8
mov ecx, dword [ebp - 0x34]
sub esp, 8
mov edi, eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym._SetBrushOrgEx_16
sub esp, 0x10
cmp dword [ebp + 0x28], 1
je 0x70d843f8
mov eax, dword [ebp + 0x28]
test eax, eax
jne 0x70d84390
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x28], 0xcc0020
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._StretchBlt_44
sub esp, 0x2c
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0
mov dword [ebp - 0x30], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._SetBrushOrgEx_16
sub esp, 0x10
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._SetStretchBltMode_8
mov edx, dword [ebp - 0x30]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._CreateCompatibleDC_4
xor edx, edx
sub esp, 4
mov edi, eax
test eax, eax
je 0x70d84371
mov eax, dword [ebp + 8]
lea eax, [eax + esi - 1]
cdq
idiv esi
imul eax, esi
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], ecx
lea eax, [eax + ebx - 1]
mov dword [ebp - 0x3c], ecx
cdq
idiv ebx
imul eax, ebx
mov dword [ebp - 0x40], eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._CreateCompatibleBitmap_12
sub esp, 0xc
mov dword [ebp - 0x44], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SelectObject_8
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
sub esp, 8
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._BitBlt_36
mov ecx, dword [ebp - 0x3c]
sub esp, 0x24
sub ecx, esi
test ecx, ecx
jle 0x70d84210
mov dword [ebp + 0x20], ebx
mov edx, edi
mov ebx, ecx
mov edi, esi
lea esi, [esi]
cmp esi, ebx
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x14], edx
cmovg esi, ebx
mov dword [esp + 4], edi
mov dword [esp], edx
mov dword [esp + 0xc], esi
sub ebx, esi
add edi, esi
add esi, esi
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [ebp - 0x38], edx
call sym._BitBlt_36
mov edx, dword [ebp - 0x38]
sub esp, 0x24
test ebx, ebx
jg 0x70d841b8
mov ebx, dword [ebp + 0x20]
mov edi, edx
mov esi, dword [ebp - 0x40]
sub esi, ebx
test esi, esi
jle 0x70d84275
mov ecx, edi
mov edi, ebx
lea esi, [esi]
cmp esi, ebx
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x14], ecx
cmovle ebx, esi
mov dword [esp + 8], edi
mov dword [esp], ecx
mov dword [esp + 0x10], ebx
sub esi, ebx
add edi, ebx
add ebx, ebx
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [ebp - 0x38], ecx
call sym._BitBlt_36
mov ecx, dword [ebp - 0x38]
sub esp, 0x24
test esi, esi
jg 0x70d84220
mov edi, ecx
mov esi, dword [ebp - 0x2c]
mov dword [esp + 4], 4
mov dword [esp], esi
call sym._SetStretchBltMode_8
sub esp, 8
mov ebx, eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call sym._SetBrushOrgEx_16
sub esp, 0x10
cmp dword [ebp + 0x28], 1
je 0x70d84560
mov edx, dword [ebp + 0x28]
test edx, edx
jne 0x70d84478
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], 0xcc0020
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._StretchBlt_44
sub esp, 0x2c
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0
mov dword [ebp - 0x30], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._SetBrushOrgEx_16
sub esp, 0x10
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym._SetStretchBltMode_8
mov eax, dword [ebp - 0x48]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SelectObject_8
mov eax, dword [ebp - 0x44]
sub esp, 8
mov dword [esp], eax
call sym._DeleteObject_4
mov edx, dword [ebp - 0x30]
sub esp, 4
mov dword [esp], edi
mov dword [ebp - 0x2c], edx
call sym._DeleteDC_4
mov edx, dword [ebp - 0x2c]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x70d9a788]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._AlphaBlend_44
sub esp, 0x2c
test eax, eax
je 0x70d84060
mov edx, 1
jmp 0x70d840b1
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, ebx
sar edx, 0x1f
sar eax, 0x1f
xor ebx, eax
sub ebx, eax
mov eax, esi
sar eax, 0x1f
mov dword [esp + 0x24], ebx
xor esi, eax
sub esi, eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
xor eax, edx
sub eax, edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
sar edx, 0x1f
xor eax, edx
sub eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._TransparentBlt_44
sub esp, 0x2c
mov edx, eax
jmp 0x70d840b1
mov eax, dword [0x70d9a788]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._AlphaBlend_44
sub esp, 0x2c
test eax, eax
je 0x70d842c2
mov edx, 1
jmp 0x70d84318
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x2c]
sar eax, 0x1f
xor edx, eax
sar ecx, 0x1f
mov dword [esp + 0x28], edi
mov edi, dword [ebp + 0x18]
sub edx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], edi
mov edi, dword [ebp + 0x14]
xor eax, ecx
mov dword [esp + 0x24], edx
sub eax, ecx
mov dword [esp + 0x18], edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x10], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x14], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._TransparentBlt_44
sub esp, 0x2c
mov edx, eax
jmp 0x70d83fb1
mov edx, 1
jmp 0x70d83fb1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x1c], 0
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], 0
sar eax, 0x1f
mov dword [esp + 0x14], edi
xor edx, eax
sar ecx, 0x1f
sub edx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], edx
xor eax, ecx
mov dword [esp + 0x10], edx
sub eax, ecx
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x28], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._TransparentBlt_44
sub esp, 0x2c
mov edx, eax
jmp 0x70d84318