Function at 0x465a6c
Capabilities:
Capture screenshot

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd8
mov dword [esp + 4], ecx
mov byte [esp], dl
mov ebx, eax
xor esi, esi
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x465a8d
push eax
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.user32.dll_GetDC
mov edi, eax
mov dword [ebx + 0x38], edi
push 8
push edi
call sub.gdi32.dll_GetDeviceCaps
mov edi, eax
push 0xa
mov eax, dword [ebx + 0x38]
push eax
call sub.gdi32.dll_GetDeviceCaps
mov dl, byte [ebx + 0x24]
cmp dl, byte [esp]
jne 0x465acc
cmp di, word [ebx + 0x90]
jne 0x465acc
cmp ax, word [ebx + 0x92]
je 0x465f70
mov word [ebx + 0x90], di
mov word [ebx + 0x92], ax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x465ae6
call fcn.004027e0
lea eax, [ebx + 0x30]
push eax
lea ecx, [esp + 0xc]
mov dl, byte [esp + 4]
mov eax, ebx
call fcn.00466458
movzx eax, word [ebx + 0x90]
xor ecx, ecx
mov cl, byte [0x4a2a44]
mov edx, ecx
dec edx
add eax, edx
cdq
idiv ecx
mov word [ebx + 0x26], ax
movzx eax, word [ebx + 0x92]
xor ecx, ecx
mov cl, byte [0x4a2a44]
mov edx, ecx
dec edx
add eax, edx
cdq
idiv ecx
mov esi, eax
mov word [ebx + 0x28], si
mov ax, word [ebx + 0x26]
imul si
mov word [ebx + 0x2a], ax
push 0
lea eax, [ebx + 4]
mov ecx, 1
mov edx, dword [0x4656e0]
call fcn.00405ca0
add esp, 4
push 0
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x46570c]
call fcn.00405ca0
add esp, 4
push 0
lea eax, [ebx + 0xc]
mov ecx, 1
mov edx, dword [0x465738]
call fcn.00405ca0
add esp, 4
movzx eax, word [ebx + 0x2a]
push eax
lea eax, [ebx + 4]
mov ecx, 1
mov edx, dword [0x4656e0]
call fcn.00405ca0
add esp, 4
movzx eax, word [ebx + 0x2a]
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x46570c]
call fcn.00405ca0
add esp, 4
movzx eax, word [ebx + 0x2a]
push eax
lea eax, [ebx + 0xc]
mov ecx, 1
mov edx, dword [0x465738]
call fcn.00405ca0
add esp, 4
movzx edx, word [ebx + 0x2a]
mov cl, byte [0x4a2a48]
mov eax, dword [ebx + 0xc]
call fcn.00407978
movzx eax, word [ebx + 0x2a]
add eax, 7
shr eax, 3
mov word [ebx + 0x2c], ax
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x465c01
call fcn.004027e0
movzx eax, word [ebx + 0x2c]
call fcn.004027c0
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x30]
movzx eax, word [eax + 0xe]
cmp eax, 0x18
ja case.0x465c23.0
mov al, byte [eax + 0x465c2a]
jmp dword [eax*4 + 0x465c43]
xor eax, eax
mov al, byte [0x4a2a44]
xor edx, edx
mov dl, byte [0x4a2a44]
imul edx
shr eax, 3
mov word [ebx + 0x2e], ax
jmp case.0x465c23.0
xor eax, eax
mov al, byte [0x4a2a44]
xor edx, edx
mov dl, byte [0x4a2a44]
imul edx
shr eax, 1
mov word [ebx + 0x2e], ax
jmp case.0x465c23.0
mov eax, dword [ebx + 0x30]
movzx eax, word [eax + 0xe]
add eax, 7
shr eax, 3
xor edx, edx
mov dl, byte [0x4a2a44]
imul dx
xor edx, edx
mov dl, byte [0x4a2a44]
imul dx
mov word [ebx + 0x2e], ax
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x465cb9
call fcn.004027e0
movzx eax, word [ebx + 0x2e]
call fcn.004027c0
mov dword [ebx + 0x44], eax
cmp dword [ebx + 0x20], 0
je 0x465cd3
mov eax, dword [ebx + 0x20]
call fcn.004027e0
movzx eax, word [ebx + 0x2e]
movzx edx, word [ebx + 0x2a]
imul edx
call fcn.004027c0
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 4]
call fcn.00405aec
test ax, ax
jb 0x465d1a
inc eax
mov word [esp + 0x10], ax
xor edi, edi
movzx eax, di
mov edx, dword [ebx + 4]
mov byte [edx + eax], 0
mov edx, dword [ebx + 8]
mov byte [edx + eax], 0
mov edx, dword [ebx + 0xc]
mov byte [edx + eax], 0
inc edi
dec word [esp + 0x10]
jne 0x465cfa
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x48], 0
je 0x465d32
mov eax, dword [ebx + 0x48]
call fcn.004027e0
movzx eax, word [esp + 8]
add eax, 0x15
movzx edx, word [ebx + 0x2c]
add eax, edx
movzx edx, word [ebx + 0x2e]
movzx ecx, word [ebx + 0x2a]
imul edx, ecx
add eax, edx
call fcn.004027c0
mov dword [ebx + 0x48], eax
lea eax, [ebx + 0x18]
push eax
call sub.user32.dll_GetCursorPos
mov ax, word [ebx + 0x18]
mov word [esp + 0x12], ax
mov ax, word [ebx + 0x1c]
mov word [esp + 0x14], ax
lea edx, [esp + 0x16]
mov eax, ebx
call fcn.00465a38
mov ax, word [ebx + 0x2e]
mov word [esp + 0x17], ax
mov dx, word [esp + 8]
mov word [esp + 0x19], dx
mov dx, word [ebx + 0x2c]
mov word [esp + 0x1b], dx
movzx eax, ax
movzx ecx, word [ebx + 0x2a]
imul eax, ecx
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], 0x15
mov ax, word [esp + 8]
add ax, 0x15
mov word [esp + 0x23], ax
add ax, dx
mov word [esp + 0x25], ax
lea edx, [esp + 0x12]
mov ecx, 0x15
mov eax, dword [ebx + 0x48]
call fcn.00407968
mov eax, dword [ebx + 0x48]
add eax, 0x15
mov dword [esp + 0xc], eax
movzx ecx, word [esp + 8]
mov edx, dword [ebx + 0x30]
mov eax, dword [esp + 0xc]
call fcn.00407968
movzx eax, word [esp + 8]
add eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
movzx edx, word [ebx + 0x2c]
mov cl, 0xff
mov eax, dword [ebx + 0x40]
call fcn.00407978
movzx ecx, word [ebx + 0x2c]
mov edx, dword [ebx + 0x40]
mov eax, dword [esp + 0xc]
call fcn.00407968
cmp dword [ebx + 0x3c], 0
je 0x465e28
mov eax, dword [ebx + 0x3c]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebx + 0x38]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebx + 0x3c], eax
cmp dword [ebx + 0x34], 0
je 0x465e43
mov eax, dword [ebx + 0x34]
push eax
call sub.gdi32.dll_DeleteObject
movzx esi, byte [0x4a2a44]
push esi
push esi
mov eax, dword [ebx + 0x38]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov edi, eax
mov dword [ebx + 0x34], edi
push edi
mov eax, dword [ebx + 0x3c]
push eax
call sub.gdi32.dll_SelectObject
xor edx, edx
mov dl, byte [0x4a2a44]
mov eax, dword [ebx + 0x30]
mov dword [eax + 4], edx
xor edx, edx
mov dl, byte [0x4a2a44]
mov dword [eax + 8], edx
xor edx, edx
mov dl, byte [0x4a2a44]
mov ecx, edx
imul ecx, edx
mov dword [eax + 0x14], ecx
mov esi, dword [ebx + 0x20]
mov ax, word [ebx + 0x28]
dec eax
test ax, ax
jb 0x465f44
inc eax
mov word [esp + 0x10], ax
mov word [esp + 0xa], 0
mov bp, word [ebx + 0x26]
dec ebp
test bp, bp
jb 0x465f34
inc ebp
xor edi, edi
push 0xcc0020
movzx edx, word [esp + 0xe]
xor ecx, ecx
mov cl, byte [0x4a2a44]
imul edx, ecx
push edx
movzx edx, di
xor ecx, ecx
mov cl, byte [0x4a2a44]
imul edx, ecx
push edx
mov edx, dword [ebx + 0x38]
push edx
xor eax, eax
mov al, byte [0x4a2a44]
push eax
push eax
push 0
push 0
mov eax, dword [ebx + 0x3c]
push eax
call sub.gdi32.dll_BitBlt
push 0
mov eax, dword [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x44]
push eax
xor eax, eax
mov al, byte [0x4a2a44]
push eax
push 0
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebx + 0x3c]
push eax
call sub.gdi32.dll_GetDIBits
movzx ecx, word [ebx + 0x2e]
mov edx, dword [ebx + 0x44]
mov eax, esi
call fcn.00407968
movzx eax, word [ebx + 0x2e]
add eax, esi
mov esi, eax
inc edi
dec bp
jne 0x465eb8
inc word [esp + 0xa]
dec word [esp + 0x10]
jne 0x465eab
movzx eax, word [ebx + 0x2c]
add eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
movzx ecx, word [ebx + 0x2e]
movzx eax, word [ebx + 0x2a]
imul ecx, eax
mov edx, dword [ebx + 0x20]
mov eax, dword [esp + 0xc]
call fcn.00407968
mov esi, dword [ebx + 0x48]
mov al, byte [esp]
mov byte [ebx + 0x24], al
movzx eax, word [esp + 8]
add eax, 0x15
movzx edx, word [ebx + 0x2c]
add eax, edx
movzx edx, word [ebx + 0x2e]
movzx ecx, word [ebx + 0x2a]
imul edx, ecx
add eax, edx
mov edx, dword [esp + 4]
mov dword [edx], eax
mov eax, esi
add esp, 0x28
pop ebp
pop edi
pop esi
pop ebx
ret