Function at 0x460270
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2d68
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x53d9f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x104], 0
mov dword [ebp - 4], 0
je 0x46052e
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x46052e
cmp eax, 6
jl 0x46052e
xor ebx, ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x18], ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.00466860
test eax, eax
je 0x46052e
mov esi, dword [ebp - 0x10]
push ecx
mov ecx, esp
push 0x502360
call fcn.004201c0
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00466910
xor ecx, ecx
cmp cx, ax
je 0x46052e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x1c]
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
call fcn.00421610
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
push 0x4ee53c
call fcn.004201c0
push 0x3a
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004672c0
mov eax, dword [ebp - 0x1c]
mov edx, str.idres
mov byte [ebp - 4], 2
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x46037a
test si, si
je 0x460376
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x46037a
add ecx, 4
add edx, 4
test si, si
jne 0x460354
xor ecx, ecx
jmp 0x46037f
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x4603a2
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00466af0
push eax
mov ecx, edi
call fcn.004666e0
mov ebx, eax
mov dword [ebp - 0x18], ebx
jmp 0x460440
mov edx, str.iddll
mov ecx, eax
lea esp, [esp]
mov si, word [ecx]
cmp si, word [edx]
jne 0x4603d6
test si, si
je 0x4603d2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4603d6
add ecx, 4
add edx, 4
test si, si
jne 0x4603b0
xor ecx, ecx
jmp 0x4603db
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x4603fd
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00466af0
push 0
push eax
mov ecx, edi
call fcn.00466640
mov ebx, eax
mov dword [ebp - 0x18], ebx
jmp 0x460440
mov ecx, 0x5027a4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x460428
test dx, dx
je 0x460424
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x460428
add eax, 4
add ecx, 4
test dx, dx
jne 0x460402
xor eax, eax
jmp 0x46042d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x460440
push dword [ebp - 0x14]
mov ecx, edi
call fcn.004666c0
mov ebx, eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
call fcn.00420290
lea ecx, [ebp - 0x1c]
call fcn.00420290
test ebx, ebx
je 0x46052e
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0
push eax
push 0x18
push ebx
mov dword [ebp - 0x10], 0
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x460483
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
add ecx, edi
add edx, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], edx
cmp edi, ecx
jge 0x460518
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
add eax, edi
cmp ecx, eax
mov dword [ebp + 0x18], eax
mov ebx, eax
cmovl ebx, ecx
mov ecx, esi
cmp esi, edx
jge 0x460506
sub ebx, edi
mov edi, edi
mov esi, dword [ebp - 0x10]
push 0xcc0020
push 0
add esi, ecx
push 0
push dword [ebp - 0x20]
cmp edx, esi
mov eax, esi
cmovl eax, edx
sub eax, ecx
push eax
push ebx
push ecx
push edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp + 0x14]
mov ecx, esi
cmp ecx, edx
jl 0x4604d0
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edi, eax
cmp edi, ecx
jl 0x4604b7
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp + 0x1c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x460550
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18