Function at 0x40ae50
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push esi
push edi
cmp byte [ebp], 0
jne 0x40ae6d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x1c
mov ebx, dword [esp + 0x54]
lea eax, [esp + 0x58]
push eax
push ebp
mov ecx, dword [ebx + 8]
push ecx
call fcn.0042b1f0
test eax, eax
jne 0x40aeb1
mov edx, dword [0x44163c]
push 0x28
push edx
call fcn.0042abe0
test eax, eax
mov dword [esp + 0x58], eax
jne 0x40aea4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x1c
push 1
push eax
mov eax, dword [ebx + 8]
push ebp
push eax
call fcn.0042b2b0
mov ecx, dword [esp + 0x58]
cmp dword [ecx], 0
jne 0x40aee6
mov edx, dword [ebx]
push 0
push 0x30
push 0x11
push 0x28
push ebp
push edx
call fcn.00428610
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x40aee0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x1c
mov ecx, dword [esp + 0x58]
mov dword [ecx], eax
mov edx, dword [esp + 0x58]
mov dword [edx + 0xc], 1
mov eax, dword [esp + 0x58]
cmp dword [eax], 2
jne 0x40b1ff
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x40b147
mov ecx, dword [eax]
mov edi, eax
cmp ecx, 7
jg case.0x40b05e.6
cmp ecx, 2
jl case.0x40b05e.6
mov edx, dword [eax + 4]
lea esi, [eax + 4]
test edx, edx
mov dword [esp + 0x10], esi
jne 0x40af6a
cmp ecx, 7
jne 0x40af45
add eax, 8
push eax
mov eax, dword [esp + 0x58]
push ebp
mov ecx, dword [eax]
push ecx
call fcn.004283b0
jmp 0x40af58
mov edx, dword [esp + 0x54]
add eax, 8
push eax
push 0x11
mov eax, dword [edx]
push ebp
push eax
call fcn.004282c0
test eax, eax
mov dword [esi], eax
je 0x40b130
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x10]
cmp dword [edi], 2
jne 0x40b039
mov ecx, dword [esi]
cmp dword [ecx], 0x9ac6cdd7
jne 0x40afa5
movsx edx, word [ecx + 6]
mov esi, dword [ecx + 0x1c]
mov dword [edi + 0x18], edx
movsx eax, word [ecx + 8]
mov dword [edi + 0x1c], eax
mov ebx, 0x16
movsx edx, word [ecx + 0xa]
mov dword [edi + 0x20], edx
movsx eax, word [ecx + 0xc]
shl esi, 1
mov dword [edi + 0x24], eax
jmp 0x40afbe
mov dx, word [ecx]
cmp dx, 1
je 0x40afb7
test dx, dx
jne case.0x40b05e.6
mov esi, dword [ecx + 6]
shl esi, 1
xor ebx, ebx
mov ecx, dword [edi + 8]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x60], eax
je 0x40b130
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x40aff5
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40b130
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
xor ecx, ecx
test esi, esi
lea edx, [ebx + eax]
jbe 0x40b00f
mov al, byte [edx]
inc edx
mov byte [ecx + ebp], al
inc ecx
cmp ecx, esi
jb 0x40b004
push ebp
push esi
call dword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
test eax, eax
mov dword [edi + 0x10], eax
jne 0x40b0fe
mov esi, dword [esp + 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40b130
mov esi, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne case.0x40b05e.6
xor ecx, ecx
mov cx, word [esi + 0xe]
dec ecx
cmp ecx, 0x17
ja case.0x40b05e.6
xor edx, edx
mov dl, byte [ecx + 0x40bb80]
jmp dword [edx*4 + 0x40bb68]
mov eax, 8
jmp 0x40b08e
mov eax, 0x40
jmp 0x40b078
mov eax, 0x400
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40b08e
lea eax, [ecx*4]
jmp 0x40b08e
mov eax, dword [esi + 0x20]
shl eax, 2
mov ecx, dword [esi + 4]
lea ebx, [esi + eax]
mov dword [edi + 0x20], ecx
mov edx, dword [esi + 8]
xor ecx, ecx
mov dword [edi + 0x24], edx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov ebp, dword [esi]
push ecx
add ebx, ebp
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40b0e4
cmp dword [eax + 0x10], 1
je 0x40b0e4
mov eax, dword [edi]
cmp eax, 3
je 0x40b0d7
cmp eax, 7
je 0x40b0d7
cmp eax, 4
jne 0x40b0e4
mov ecx, dword [esp + 0x60]
push 1
push ebp
push ecx
call fcn.00404bc0
push 0
push esi
push ebx
push 4
push esi
push ebp
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push ebp
push 0
mov dword [edi + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x40b130
mov edi, dword [edi]
cmp edi, 4
je 0x40b130
cmp edi, 7
je 0x40b130
cmp edi, 3
je 0x40b130
mov edx, dword [esp + 0x54]
push 0
push 0x28
push eax
mov eax, dword [edx]
push eax
call fcn.004285b0
mov dword [esi], 0
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x40b147
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x1c
mov esi, dword [esp + 0x5c]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_SaveDC]
lea ebx, [edi + 0x18]
mov ebp, eax
push ebx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x40b1dd
push 8
push esi
call dword [sym.imp.GDI32.dll_SetMapMode]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ebx]
push 0
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov eax, dword [edi + 0x24]
push 0
cdq
mov ecx, eax
mov eax, dword [edi + 0x1c]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
add ecx, eax
mov eax, dword [edi + 0x20]
cdq
push ecx
mov ecx, eax
mov eax, dword [ebx]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
add ecx, eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
push 0
mov ebx, dword [esp + 0x6c]
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
sub ecx, eax
mov eax, dword [ebx]
push 0
sub edx, eax
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
mov eax, dword [edi + 0x10]
push eax
push esi
call dword [sym.imp.GDI32.dll_PlayMetaFile]
push ebp
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x1c
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x40b442
mov ecx, dword [eax]
mov edi, eax
cmp ecx, 7
jg case.0x40b351.6
cmp ecx, 2
jl case.0x40b351.6
mov edx, dword [eax + 4]
lea esi, [eax + 4]
test edx, edx
mov dword [esp + 0x10], esi
jne 0x40b25f
cmp ecx, 7
jne 0x40b242
mov ecx, dword [ebx]
add eax, 8
push eax
push ebp
push ecx
call fcn.004283b0
jmp 0x40b251
mov edx, dword [ebx]
add eax, 8
push eax
push 0x11
push ebp
push edx
call fcn.004282c0
test eax, eax
mov dword [esi], eax
je 0x40b427
mov eax, dword [esp + 0x58]
cmp dword [edi], 2
jne 0x40b32c
mov ecx, dword [esi]
cmp dword [ecx], 0x9ac6cdd7
jne 0x40b29a
movsx eax, word [ecx + 6]
mov esi, dword [ecx + 0x1c]
mov dword [edi + 0x18], eax
movsx edx, word [ecx + 8]
mov dword [edi + 0x1c], edx
mov ebx, 0x16
movsx eax, word [ecx + 0xa]
mov dword [edi + 0x20], eax
movsx ecx, word [ecx + 0xc]
shl esi, 1
mov dword [edi + 0x24], ecx
jmp 0x40b2b3
mov dx, word [ecx]
cmp dx, 1
je 0x40b2ac
test dx, dx
jne case.0x40b351.6
mov esi, dword [ecx + 6]
shl esi, 1
xor ebx, ebx
mov edx, dword [edi + 8]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x18], eax
je 0x40b427
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x40b2e8
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40b427
mov edx, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
mov eax, dword [edx]
lea edx, [ebx + eax]
jbe 0x40b302
mov al, byte [edx]
inc edx
mov byte [ecx + ebp], al
inc ecx
cmp ecx, esi
jb 0x40b2f7
push ebp
push esi
call dword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
test eax, eax
mov dword [edi + 0x10], eax
jne 0x40b3f1
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40b427
mov esi, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne case.0x40b351.6
xor ecx, ecx
mov cx, word [esi + 0xe]
dec ecx
cmp ecx, 0x17
ja case.0x40b351.6
xor edx, edx
mov dl, byte [ecx + 0x40bbb0]
jmp dword [edx*4 + 0x40bb98]
mov eax, 8
jmp 0x40b381
mov eax, 0x40
jmp 0x40b36b
mov eax, 0x400
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40b381
lea eax, [ecx*4]
jmp 0x40b381
mov eax, dword [esi + 0x20]
shl eax, 2
mov ecx, dword [esi + 4]
lea ebx, [esi + eax]
mov dword [edi + 0x20], ecx
mov edx, dword [esi + 8]
xor ecx, ecx
mov dword [edi + 0x24], edx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov ebp, dword [esi]
push ecx
add ebx, ebp
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40b3d7
cmp dword [eax + 0x10], 1
je 0x40b3d7
mov eax, dword [edi]
cmp eax, 3
je 0x40b3ca
cmp eax, 7
je 0x40b3ca
cmp eax, 4
jne 0x40b3d7
mov ecx, dword [esp + 0x60]
push 1
push ebp
push ecx
call fcn.00404bc0
push 0
push esi
push ebx
push 4
push esi
push ebp
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push ebp
push 0
mov dword [edi + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
test eax, eax
je 0x40b427
mov edi, dword [edi]
cmp edi, 4
je 0x40b427
cmp edi, 7
je 0x40b427
cmp edi, 3
je 0x40b427
push 0
push 0x28
push eax
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
push ecx
call fcn.004285b0
mov edx, dword [esp + 0x10]
mov dword [edx], 0
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x40b442
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x1c
mov esi, dword [esp + 0x64]
lea eax, [esp + 0x14]
push eax
push 0
push 0x20
push esi
call fcn.00408890
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x33
push esi
mov dword [esp + 0x28], ebp
call fcn.00408890
mov esi, dword [esp + 0x5c]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push esi
mov dword [esp + 0x14], edi
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40b4ba
cmp dword [eax + 0x10], 1
je 0x40b4ba
mov edx, dword [esp + 0x58]
mov eax, dword [edx]
cmp eax, 3
je 0x40b4ad
cmp eax, 7
je 0x40b4ad
cmp eax, 4
jne 0x40b4ba
mov eax, dword [esp + 0x60]
push 1
push edi
push eax
call fcn.00404bc0
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 0x14]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [esp + 0x20]
mov eax, dword [esp + 0x58]
add eax, 0x18
push eax
push ecx
call edi
mov eax, ebp
mov esi, dword [esp + 0x68]
sub eax, 0
je 0x40ba96
mov ecx, 2
sub eax, ecx
je 0x40b603
sub eax, 0x7fe
je 0x40b64b
lea edx, [esp + 0x30]
push esi
push edx
call edi
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov eax, edx
sub eax, ecx
cmp ebp, eax
jle 0x40b53a
mov eax, ecx
sub eax, edx
add eax, ebp
cdq
sub eax, edx
mov edi, eax
sar edi, 1
sub ebp, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ebp
jmp 0x40b54f
mov eax, edx
mov edi, dword [esp + 0x20]
sub eax, ebp
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov edx, ecx
sub edx, ebx
mov ebx, dword [esp + 0x2c]
cmp ebx, edx
jle 0x40b581
mov eax, dword [esp + 0x34]
sub eax, ecx
add eax, ebx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
sub ebx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebx
jmp 0x40bafc
mov eax, ecx
mov ecx, dword [esp + 0x34]
sub eax, ebx
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x24]
cmp eax, 2
jne 0x40b65b
mov dword [esp + 0x60], ecx
add ecx, 0xfffffffe
sub ebp, 2
sub ebx, 2
xor edx, edx
mov eax, edi
test ecx, ecx
setl dl
dec edx
add edi, 0xfffffffe
and ecx, edx
xor edx, edx
test edi, edi
setl dl
dec edx
mov dword [esp + 0x28], ebp
and edi, edx
mov dword [esp + 0x2c], ebx
mov edx, edi
mov dword [esp + 0x24], ecx
sub edx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edi
lea edx, [eax + edx + 2]
mov eax, ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x60]
sub eax, edx
mov edx, dword [esp + 0x34]
lea eax, [edx + eax + 2]
mov dword [esp + 0x34], eax
jmp 0x40b65b
mov edx, dword [esp + 0x6c]
cmp edx, ecx
jne 0x40b631
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], ecx
add eax, 0xfffffffe
cmp eax, ecx
jl 0x40b61e
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
add eax, 0xfffffffe
cmp eax, ecx
jl 0x40b631
mov dword [esp + 0x2c], eax
cmp edx, 1
jne 0x40b63e
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x5c]
push 2
push ecx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
cmp eax, 1
mov eax, dword [esp + 0x18]
jne 0x40b947
test ah, 8
jne 0x40b947
mov edi, dword [esp + 0x58]
and eax, 2
mov dword [esp + 0x6c], eax
je 0x40b68a
lea ecx, [esp + 0x40]
push esi
push ecx
jmp 0x40b694
lea edx, [esp + 0x20]
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [esp + 0x60]
mov edx, dword [esp + 0x64]
push ecx
push 0
push 0x1f
push edx
call fcn.00408890
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40b6da
cmp dword [eax + 0x10], 1
je 0x40b6da
mov eax, dword [edi]
cmp eax, 3
je 0x40b6d2
cmp eax, 7
je 0x40b6d2
cmp eax, 4
jne 0x40b6da
or dword [esp + 0x60], 0x2000000
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, dword [esp + 0x5c]
push ebp
call ebx
mov edi, eax
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
sub eax, edx
mov edx, dword [esp + 0x40]
push eax
sub ecx, edx
push ecx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x5c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call ebx
push 0
push 1
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
sub edx, ecx
push 1
mov ebx, eax
mov eax, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x50]
sub eax, edx
push eax
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
push ebx
mov dword [esp + 0x70], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
mov eax, dword [esp + 0x70]
test eax, eax
je 0x40b850
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 8]
push ecx
mov ecx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 4]
sub ecx, eax
push ecx
mov ecx, dword [esi]
sub edx, ecx
push edx
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 0x8800c6
push 0
push 0
sub edx, eax
push ebx
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
push 0xcc0020
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
sub edx, ecx
push edx
mov edx, dword [esi + 8]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 4]
sub ecx, eax
mov eax, dword [esi]
sub edx, eax
push ecx
push edx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
push 0x220326
sub eax, edx
mov edx, dword [esi]
push 0
push 0
push ebx
sub ecx, edx
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 0xee0086
push 0
push 0
sub edx, eax
push edi
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x40b922
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
mov edx, dword [esp + 0x3c]
mov esi, dword [sym.imp.GDI32.dll_BitBlt]
sub edx, eax
mov eax, dword [esp + 0x38]
sub eax, ecx
push edx
push eax
push 0
push 0
push ebx
call esi
push 0x8800c6
push 0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push 0
sub ecx, eax
mov eax, dword [esp + 0x40]
push ebx
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
push ebp
call esi
push 0xcc0020
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
mov edx, dword [esp + 0x3c]
sub edx, eax
mov eax, dword [esp + 0x38]
sub eax, ecx
push edx
push eax
push 0
push 0
push edi
call esi
push 0x220326
push 0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x28]
push 0
push ebx
sub edx, eax
push ecx
push edx
push 0
push 0
push edi
call esi
push 0xee0086
push 0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push 0
sub eax, edx
mov edx, dword [esp + 0x40]
push edi
push eax
sub ecx, dword [esp + 0x34]
push ecx
mov eax, dword [esp + 0x48]
push edx
push eax
push ebp
call esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call esi
push edi
call esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x54]
push ecx
call esi
mov edx, dword [esp + 0x68]
push edx
call esi
jmp 0x40ba6c
test al, 2
je 0x40b983
mov eax, dword [esi + 4]
sub ebx, ecx
push 0xcc0020
sub ebp, edi
push ebx
push ebp
push ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
push edi
push ecx
mov ecx, dword [esi + 0xc]
sub ecx, eax
push ecx
mov ecx, dword [esi + 8]
sub ecx, edx
push ecx
push eax
push edx
mov edx, dword [esp + 0x84]
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x40ba6c
test ah, 8
je 0x40ba45
mov eax, dword [esi + 8]
mov edx, dword [esi]
sub eax, edx
sub ebp, edi
cdq
idiv ebp
mov dword [esp + 0x54], 0
test eax, eax
jl 0x40ba6c
jmp 0x40b9ae
mov ebx, dword [esp + 0x2c]
mov edi, dword [esi + 4]
mov eax, dword [esi + 0xc]
sub eax, edi
sub ebx, ecx
cdq
idiv ebx
xor ebp, ebp
test eax, eax
jl 0x40ba1e
mov edx, dword [esp + 0x58]
push 0xcc0020
push 0
push 0
mov eax, dword [edx + 0x24]
mov ecx, dword [edx + 0x1c]
mov ebx, dword [edx + 0x18]
sub eax, ecx
mov ecx, dword [edx + 0x20]
mov edx, dword [esp + 0x1c]
push edx
mov edx, ebp
push eax
imul edx, eax
mov eax, dword [esp + 0x68]
sub ecx, ebx
imul eax, ecx
mov ebx, dword [esi]
add edx, edi
push ecx
mov ecx, dword [esp + 0x74]
add eax, ebx
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
sub eax, edi
sub ebx, ecx
cdq
idiv ebx
inc ebp
cmp ebp, eax
jle 0x40b9c1
mov eax, dword [esi + 8]
mov edx, dword [esi]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
sub eax, edx
sub ebx, ebp
cdq
idiv ebx
mov edi, dword [esp + 0x54]
inc edi
mov dword [esp + 0x54], edi
cmp edi, eax
jle 0x40b9aa
jmp 0x40ba6c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
push 0xcc0020
push ecx
push edi
sub ebx, ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x6c]
sub ebp, edi
push ebx
push ebp
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret 0x1c
lea edx, [esp + 0x30]
push esi
push edx
call edi
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
sub eax, edi
sub ecx, ebx
cmp eax, ecx
jl 0x40bab8
mov eax, ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
sub edx, ecx
sub ebx, ebp
cmp edx, ebx
jl 0x40bad2
mov edx, ebx
mov dword [esp + 0x60], edx
lea ebx, [ecx + edx]
mov edx, dword [esp + 0x30]
lea ebp, [edi + eax]
add edx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x60]
add eax, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x6c], 2
jne 0x40b65b
mov dword [esp + 0x60], ecx
add ecx, 0xfffffffe
sub ebp, 2
sub ebx, 2
xor edx, edx
mov eax, edi
test ecx, ecx
setl dl
dec edx
add edi, 0xfffffffe
and ecx, edx
xor edx, edx
test edi, edi
setl dl
dec edx
mov dword [esp + 0x28], ebp
and edi, edx
mov dword [esp + 0x2c], ebx
mov edx, edi
mov dword [esp + 0x24], ecx
sub edx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edi
lea edx, [eax + edx + 2]
mov eax, ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x60]
sub eax, edx
mov edx, dword [esp + 0x34]
lea eax, [edx + eax + 2]
mov dword [esp + 0x34], eax
jmp 0x40b65b