Function at 0x40abf0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
push edi
cmp byte [esi], 0
je 0x40b239
mov ebp, dword [esp + 0x44]
lea eax, [esp + 0x48]
push eax
push esi
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0042d9b0
test eax, eax
jne 0x40ac42
mov edx, dword [0x444900]
push 0x2c
push edx
call fcn.0042d3b0
test eax, eax
mov dword [esp + 0x48], eax
je 0x40b239
push 1
push eax
mov eax, dword [ebp + 0x10]
push esi
push eax
call fcn.0042da50
mov ecx, dword [esp + 0x48]
cmp dword [ecx], 0
jne 0x40ac70
mov edx, dword [ebp + 4]
push 0
push 0x30
push 0x11
push 0x28
push esi
push edx
call fcn.0042a840
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x40b239
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
mov edx, dword [esp + 0x48]
mov dword [edx + 0xc], 1
mov eax, dword [esp + 0x48]
cmp dword [eax], 2
jne 0x40afb0
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x40aef4
mov ecx, dword [eax]
mov ebx, eax
cmp ecx, 7
jg case.0x40ade2.5
cmp ecx, 2
jl case.0x40ade2.5
mov edx, dword [eax + 4]
lea edi, [eax + 4]
test edx, edx
mov dword [esp + 0x20], edi
jne 0x40acea
cmp ecx, 7
jne 0x40accc
add eax, 8
push eax
mov eax, dword [ebp + 4]
push esi
push eax
call fcn.0042a600
jmp 0x40acdc
mov ecx, dword [ebp + 4]
add eax, 8
push eax
push 0x11
push esi
push ecx
call fcn.0042a590
test eax, eax
mov dword [edi], eax
je 0x40aee5
mov eax, dword [esp + 0x48]
cmp dword [ebx], 2
jne 0x40adbb
mov ecx, dword [edi]
cmp dword [ecx], 0x9ac6cdd7
jne 0x40ad28
movsx edx, word [ecx + 6]
mov esi, dword [ecx + 0x1c]
mov dword [ebx + 0x1c], edx
movsx eax, word [ecx + 8]
mov dword [ebx + 0x20], eax
mov dword [esp + 0x50], 0x16
movsx edx, word [ecx + 0xa]
mov dword [ebx + 0x24], edx
movsx eax, word [ecx + 0xc]
shl esi, 1
mov dword [ebx + 0x28], eax
jmp 0x40ad47
mov dx, word [ecx]
cmp dx, 1
je 0x40ad3a
test dx, dx
jne case.0x40ade2.5
mov esi, dword [ecx + 6]
mov dword [esp + 0x50], 0
shl esi, 1
mov ecx, dword [ebx + 8]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x54], ebp
je 0x40aee5
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x40ad78
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40aee5
mov ecx, dword [edi]
mov ebp, dword [esp + 0x50]
add ecx, ebp
xor ebp, ebp
test esi, esi
jbe 0x40ad91
mov dl, byte [ecx]
inc ecx
mov byte [eax + ebp], dl
inc ebp
cmp ebp, esi
jb 0x40ad86
push eax
push esi
call dword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
test eax, eax
mov dword [ebx + 0x10], eax
jne 0x40aec0
mov esi, dword [esp + 0x54]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40aee5
mov esi, dword [edi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne case.0x40ade2.5
xor ecx, ecx
mov cx, word [esi + 0xe]
lea edi, [ecx - 1]
cmp edi, 0x1f
ja case.0x40ade2.5
xor ecx, ecx
mov cl, byte [edi + 0x40b95c]
jmp dword [ecx*4 + 0x40b948]
mov eax, 8
jmp 0x40ae12
mov eax, 0x40
jmp 0x40adfc
mov eax, 0x400
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40ae12
lea eax, [ecx*4]
jmp 0x40ae12
mov eax, dword [esi + 0x20]
shl eax, 2
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x44]
mov dword [ebx + 0x24], edx
mov ecx, dword [esi + 8]
mov dword [ebx + 0x28], ecx
xor ecx, ecx
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], ecx
mov ebp, dword [esi]
lea edx, [esp + 0x54]
add ebp, esi
push edx
add ebp, eax
mov eax, dword [edi]
push ecx
push 0x36
push eax
call fcn.00403c00
push 0
mov ecx, dword [esp + 0x58]
and ecx, 0x40
mov dword [edi + 8], ecx
mov dword [ebx + 0x18], 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40aea2
cmp dword [eax + 0x10], 1
je 0x40aea2
mov eax, dword [ebx]
cmp eax, 3
je 0x40ae8e
cmp eax, 7
je 0x40ae8e
cmp eax, 6
jne 0x40ae89
mov ecx, edx
mov edx, dword [ecx + 8]
test edx, edx
jne 0x40ae8e
cmp eax, 4
jne 0x40aea2
mov edx, dword [esp + 0x50]
push 1
push edi
push edx
mov dword [ebx + 0x18], 1
call fcn.00405190
push 0
push esi
push ebp
push 4
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push edi
push 0
mov dword [ebx + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
test eax, eax
je 0x40aee5
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x40aee5
push 0
push 0x28
push eax
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
push ecx
call fcn.0042a800
mov dword [edi], 0
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x40b220
mov esi, dword [esp + 0x4c]
mov ebx, eax
push esi
call dword [sym.imp.GDI32.dll_SaveDC]
lea ebp, [ebx + 0x1c]
mov edi, eax
push ebp
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x40af8e
push 8
push esi
call dword [sym.imp.GDI32.dll_SetMapMode]
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebp]
push 0
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov eax, dword [ebx + 0x28]
push 0
cdq
mov ecx, eax
mov eax, dword [ebx + 0x20]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
add ecx, eax
mov eax, dword [ebx + 0x24]
cdq
push ecx
mov ecx, eax
mov eax, dword [ebp]
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 ebp, dword [esp + 0x5c]
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 4]
mov edx, dword [ebp + 8]
sub ecx, eax
mov eax, dword [ebp]
push 0
sub edx, eax
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
mov eax, dword [ebx + 0x10]
push eax
push esi
call dword [sym.imp.GDI32.dll_PlayMetaFile]
push edi
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret 0x1c
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x40b245
mov ecx, dword [eax]
mov ebx, eax
cmp ecx, 7
jg case.0x40b112.5
cmp ecx, 2
jl case.0x40b112.5
mov edx, dword [eax + 4]
lea edi, [eax + 4]
test edx, edx
mov dword [esp + 0x20], edi
jne 0x40b01a
cmp ecx, 7
jne 0x40aff8
mov ecx, dword [esp + 0x44]
add eax, 8
push eax
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.0042a600
jmp 0x40b00c
add eax, 8
push eax
mov eax, dword [esp + 0x48]
push 0x11
push esi
mov ecx, dword [eax + 4]
push ecx
call fcn.0042a590
test eax, eax
mov dword [edi], eax
je 0x40b215
mov eax, dword [esp + 0x48]
cmp dword [ebx], 2
jne 0x40b0eb
mov ecx, dword [edi]
cmp dword [ecx], 0x9ac6cdd7
jne 0x40b058
movsx edx, word [ecx + 6]
mov esi, dword [ecx + 0x1c]
mov dword [ebx + 0x1c], edx
movsx eax, word [ecx + 8]
mov dword [ebx + 0x20], eax
mov dword [esp + 0x28], 0x16
movsx edx, word [ecx + 0xa]
mov dword [ebx + 0x24], edx
movsx eax, word [ecx + 0xc]
shl esi, 1
mov dword [ebx + 0x28], eax
jmp 0x40b077
mov dx, word [ecx]
cmp dx, 1
je 0x40b06a
test dx, dx
jne case.0x40b112.5
mov esi, dword [ecx + 6]
mov dword [esp + 0x28], 0
shl esi, 1
mov ecx, dword [ebx + 8]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x30], ebp
je 0x40b215
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x40b0a8
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40b215
mov ecx, dword [edi]
mov ebp, dword [esp + 0x28]
add ecx, ebp
xor ebp, ebp
test esi, esi
jbe 0x40b0c1
mov dl, byte [ecx]
inc ecx
mov byte [eax + ebp], dl
inc ebp
cmp ebp, esi
jb 0x40b0b6
push eax
push esi
call dword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
test eax, eax
mov dword [ebx + 0x10], eax
jne 0x40b1f0
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40b215
mov esi, dword [edi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne case.0x40b112.5
xor ecx, ecx
mov cx, word [esi + 0xe]
lea edi, [ecx - 1]
cmp edi, 0x1f
ja case.0x40b112.5
xor ecx, ecx
mov cl, byte [edi + 0x40b990]
jmp dword [ecx*4 + 0x40b97c]
mov eax, 8
jmp 0x40b142
mov eax, 0x40
jmp 0x40b12c
mov eax, 0x400
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40b142
lea eax, [ecx*4]
jmp 0x40b142
mov eax, dword [esi + 0x20]
shl eax, 2
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x44]
mov dword [ebx + 0x24], edx
mov ecx, dword [esi + 8]
mov dword [ebx + 0x28], ecx
xor ecx, ecx
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], ecx
mov ebp, dword [esi]
lea edx, [esp + 0x30]
add ebp, esi
push edx
add ebp, eax
mov eax, dword [edi]
push ecx
push 0x36
push eax
call fcn.00403c00
push 0
mov ecx, dword [esp + 0x34]
and ecx, 0x40
mov dword [edi + 8], ecx
mov dword [ebx + 0x18], 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40b1d2
cmp dword [eax + 0x10], 1
je 0x40b1d2
mov eax, dword [ebx]
cmp eax, 3
je 0x40b1be
cmp eax, 7
je 0x40b1be
cmp eax, 6
jne 0x40b1b9
mov ecx, edx
mov edx, dword [ecx + 8]
test edx, edx
jne 0x40b1be
cmp eax, 4
jne 0x40b1d2
mov edx, dword [esp + 0x50]
push 1
push edi
push edx
mov dword [ebx + 0x18], 1
call fcn.00405190
push 0
push esi
push ebp
push 4
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push edi
push 0
mov dword [ebx + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
test eax, eax
je 0x40b215
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x40b215
push 0
push 0x28
push eax
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
push ecx
call fcn.0042a800
mov dword [edi], 0
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x40b245
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x50]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 0x1c
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x1f
push esi
call fcn.00408d60
mov ebx, dword [esp + 0x4c]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push ebx
mov dword [esp + 0x50], edi
call dword [sym.imp.GDI32.dll_SaveDC]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40b2a8
cmp dword [eax + 0x10], 1
je 0x40b2a8
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x40b2a8
mov ecx, dword [esp + 0x50]
push 1
push edi
push ecx
call fcn.00405190
or dword [esp + 0x1c], 0x2000000
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x14]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 3
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x3d
push esi
call fcn.00408d60
lea edx, [esp + 0x10]
mov eax, dword [esp + 0x2c]
push edx
push 0
cmp eax, 1
push 0x36
push esi
jne 0x40b5d4
call fcn.00408d60
xor edx, edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
and eax, 0xffff
lea eax, [eax + eax*4]
lea ebp, [eax + eax*4]
mov eax, dword [esp + 0x5c]
shl ebp, 2
div ebp
mov eax, edx
xor edx, edx
imul eax, dword [ecx + 0x24]
div ebp
lea edx, [esp + 0x18]
push edx
push 0
push 0x38
push esi
mov edi, eax
call fcn.00408d60
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40b390
mov eax, dword [esp + 0x50]
push 0
push 0xc
push eax
call fcn.00405900
lea ecx, [esp + 0x34]
mov edi, eax
push ecx
push 0
push 3
push esi
call fcn.00408d60
lea edx, [esp + 0x14]
push edx
push 0
push 0x39
push esi
call fcn.00408d60
cmp dword [esp + 0x14], 0xffffffff
jne 0x40b384
mov eax, dword [esp + 0x18]
imul eax, ebp
add eax, edi
push eax
push 0
push 0x39
push esi
mov dword [esp + 0x24], eax
call fcn.00408d90
push edi
push 0
push 0x3e
push esi
call fcn.00408d90
cmp edi, dword [esp + 0x14]
jb 0x40b5a0
xor edi, edi
mov ebp, dword [esp + 0x44]
lea edx, [esp + 0x10]
push edx
push 0
push 0x20
push esi
call fcn.00408d60
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0x33
push esi
mov dword [esp + 0x40], eax
call fcn.00408d60
cmp dword [esp + 0x2c], 1
jne 0x40b71d
mov esi, dword [esp + 0x58]
mov ebp, dword [esi]
mov eax, dword [esi + 8]
sub ebp, edi
cmp ebp, eax
mov dword [esp + 0x20], ebp
jge 0x40b921
mov edx, dword [esp + 0x48]
mov ecx, dword [esi]
cmp ebp, ecx
jle 0x40b3e8
mov ecx, ebp
mov edi, dword [edx + 0x24]
mov eax, dword [esp + 0x10]
sub edi, ecx
mov dword [esp + 0x58], ecx
add edi, ebp
cmp eax, 1
jne 0x40b6d9
mov eax, dword [esp + 0x30]
test ah, 8
jne 0x40b6d9
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0xc]
mov ebp, eax
mov eax, dword [esi + 4]
mov dword [esp + 0x54], ebp
sub ecx, eax
push ecx
push edi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40b473
cmp dword [eax + 0x10], 1
je 0x40b473
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x40b473
mov ecx, dword [esp + 0x50]
push 1
push ebp
push ecx
call fcn.00405190
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push 0
push 1
sub edx, ecx
push 1
push edx
push edi
mov ebp, eax
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
push ebp
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
sub eax, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov edx, dword [ecx + 0x28]
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 4]
push edi
push 0
push eax
mov eax, dword [esp + 0x60]
sub ecx, edx
push eax
push ecx
push edi
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
push 0x8800c6
push 0
push 0
sub edx, eax
push ebp
push edx
push edi
push eax
mov eax, dword [esp + 0x74]
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0xcc0020
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov edx, dword [ecx + 0x28]
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esi + 0xc]
push edi
push 0
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esi + 4]
sub edx, ecx
push edx
push edi
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push 0x220326
push 0
push 0
sub ecx, eax
push ebp
push ecx
push edi
mov edx, dword [esp + 0x6c]
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x54]
push 0xee0086
push 0
push 0
sub edx, eax
push ecx
push edx
push edi
push eax
mov eax, dword [esp + 0x74]
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
call edi
mov ecx, dword [esp + 0x54]
push ecx
call edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x24]
push edx
call edi
mov eax, dword [esp + 0x28]
push eax
call edi
mov ebp, dword [esp + 0x20]
jmp 0x40b702
lea eax, [esp + 0x5c]
push eax
push 0
push 0x3e
push esi
call fcn.00408d60
xor edx, edx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x48]
sub edi, eax
mov eax, edi
mov dword [esp + 0x5c], edi
div ebp
mov eax, edx
xor edx, edx
imul eax, dword [ecx + 0x24]
div ebp
mov edi, eax
jmp 0x40b390
call fcn.00408d60
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
mov ecx, ebp
shr ecx, 0x10
mov eax, dword [edx + 0x24]
mov edi, dword [edx + 0x1c]
sub eax, edi
and ebp, 0xffff
cdq
idiv ecx
xor edx, edx
mov dword [esp + 0x20], eax
mov eax, 0x2710
div ebp
xor edx, edx
mov edi, eax
mov eax, dword [esp + 0x5c]
div edi
cdq
idiv ecx
lea eax, [esp + 0x18]
push eax
push 0
push 0x38
push esi
mov ebp, edx
call fcn.00408d60
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40b6d0
mov ecx, dword [esp + 0x50]
push 0
push 0xc
push ecx
call fcn.00405900
lea edx, [esp + 0x34]
mov ebp, eax
push edx
push 0
push 3
push esi
call fcn.00408d60
lea eax, [esp + 0x14]
push eax
push 0
push 0x39
push esi
call fcn.00408d60
cmp dword [esp + 0x14], 0xffffffff
jne 0x40b68e
mov eax, dword [esp + 0x10]
shr eax, 0x10
imul eax, dword [esp + 0x18]
imul eax, edi
add eax, ebp
push eax
push 0
push 0x39
push esi
mov dword [esp + 0x24], eax
call fcn.00408d90
push ebp
push 0
push 0x3e
push esi
call fcn.00408d90
cmp ebp, dword [esp + 0x14]
jb 0x40b6a5
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x44]
shr ebp, 0x10
dec ebp
jmp 0x40b394
lea ecx, [esp + 0x5c]
push ecx
push 0
push 0x3e
push esi
call fcn.00408d60
xor edx, edx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x10]
sub ebp, eax
mov eax, ebp
mov dword [esp + 0x5c], ebp
div edi
shr ecx, 0x10
cdq
idiv ecx
mov ebp, edx
mov edi, dword [esp + 0x44]
jmp 0x40b394
mov edx, dword [edx + 0x28]
push 0xcc0020
push edx
mov eax, dword [esi + 4]
mov edx, ecx
push edi
sub edx, ebp
push 0
push edx
mov edx, dword [esp + 0x60]
push edx
mov edx, dword [esi + 0xc]
sub edx, eax
push edx
push edi
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [esp + 0x48]
mov eax, dword [esi + 8]
add ebp, dword [edx + 0x24]
cmp ebp, eax
mov dword [esp + 0x20], ebp
jl 0x40b3e0
jmp 0x40b921
cmp dword [esp + 0x10], 1
jne 0x40b8e3
mov eax, dword [esp + 0x30]
test ah, 8
jne 0x40b8e3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov esi, dword [esp + 0x58]
mov dword [esp + 0x54], edi
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
sub edx, ecx
push edx
mov edx, dword [esi]
sub eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40b7a6
cmp dword [eax + 0x10], 1
je 0x40b7a6
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x18]
test eax, eax
je 0x40b7a6
mov eax, dword [esp + 0x50]
push 1
push edi
push eax
call fcn.00405190
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov edi, eax
mov eax, dword [esi + 4]
push 0
push 1
sub ecx, eax
push 1
push ecx
mov ecx, dword [esi]
sub edx, ecx
push edx
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
imul ebp, eax
mov edx, dword [ecx + 0x28]
sub edx, dword [ecx + 0x20]
mov ecx, dword [esi + 0xc]
push edx
push eax
mov eax, dword [esp + 0x58]
push 0
mov edx, dword [esi + 8]
push ebp
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 edi
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 edi
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0xcc0020
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x20]
mov eax, dword [esp + 0x50]
sub ecx, edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 8]
push 0
push ebp
mov ebp, dword [esi + 4]
sub ecx, ebp
push eax
push ecx
mov ecx, dword [esi]
sub edx, ecx
push edx
push 0
push 0
mov ebp, dword [esp + 0x7c]
push ebp
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 edi
sub ecx, edx
push eax
push ecx
push 0
push 0
push ebp
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 ebp
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call esi
push ebp
call esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x24]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
jmp 0x40b921
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x58]
push 0xcc0020
mov edi, dword [esi + 0x28]
mov ecx, dword [eax + 4]
sub edi, dword [esi + 0x20]
mov esi, dword [esp + 0x24]
imul ebp, esi
mov edx, dword [eax]
push edi
push esi
mov esi, dword [esp + 0x58]
push 0
push ebp
push esi
mov esi, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub esi, ecx
sub eax, edx
push esi
push eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ecx, dword [esp + 0x3c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret 0x1c