Function at 0x406d90
Capabilities:
Capture screenshot
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448fe4
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x466124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x60], 1
push eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov esi, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp esi, 7
ja 0x406e39
mov dword [ebp - 0x20], esi
test esi, esi
je 0x406e2d
mov ecx, esi
lea edi, [ebp - 0x30]
shr ecx, 1
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebp + esi*2 - 0x30], ax
mov edx, dword [ebp - 0x30]
jmp 0x406e92
cmp esi, 0x7ffffffe
ja 0x407534
mov edi, esi
lea ecx, [ebp - 0x30]
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x406e5c
mov edi, 0x7ffffffe
jmp 0x406e66
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
call fcn.00425780
mov edx, eax
mov dword [ebp - 0x1c], edi
mov ecx, esi
mov dword [ebp - 0x20], esi
shr ecx, 1
mov eax, 0x200020
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [edx + esi*2], ax
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 1
lea edi, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp + 0x18]
cmovae edi, edx
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
cmovae edx, dword [ebp + 8]
add eax, edx
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
mov dword [ebp - 0x8c], eax
cmovae edx, dword [ebp + 8]
mov ecx, eax
xor esi, esi
sub ecx, edx
cmp edx, eax
cmova ecx, esi
test ecx, ecx
je 0x406f43
cmp ecx, 0x20
jb 0x406f43
lea eax, [edx - 1]
add eax, ecx
cmp edi, eax
ja 0x406ee8
lea eax, [ecx - 1]
lea eax, [edi + eax*2]
cmp eax, edx
jae 0x406f43
and ecx, 0xffffffe0
nop dword [eax + eax]
movq xmm0, qword [edx]
add esi, 0x20
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [edi], xmm0
movq xmm0, qword [edx + 8]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [edi + 0x10], xmm0
movq xmm0, qword [edx + 0x10]
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [edi + 0x20], xmm0
movq xmm0, qword [edx + 0x18]
add edx, 0x20
punpcklbw xmm0, xmm0
psraw xmm0, 8
movups xmmword [edi + 0x30], xmm0
add edi, 0x40
cmp esi, ecx
jne 0x406ef0
mov ecx, dword [ebp - 0x8c]
cmp edx, ecx
je 0x406f60
nop dword [eax]
movsx ax, byte [edx]
lea edi, [edi + 2]
inc edx
mov word [edi - 2], ax
cmp edx, ecx
jne 0x406f50
push 0
call dword [sym.imp.USER32.dll_GetDC]
sub esp, 0x18
mov dword [ebp - 0x94], eax
mov ecx, esp
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x38], 4
push 0x4673bc
call fcn.004233e0
lea ecx, [ebp - 0xf8]
call fcn.004061f0
mov edi, eax
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x88], esp
sub esp, 0x18
mov ecx, esp
push 0x467674
call fcn.004233e0
mov ecx, esi
call fcn.004061f0
mov esi, esp
mov byte [ebp - 4], 3
sub esp, 0x18
mov ecx, esp
push 0x4678c8
call fcn.004233e0
mov ecx, esi
call fcn.004061f0
add esp, 0x18
mov byte [ebp - 4], 2
mov edx, connect
lea ecx, [ebp - 0xe0]
call fcn.00406320
mov esi, eax
add esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push 0x466e94
call fcn.004233e0
lea ecx, [ebp - 0xc8]
call fcn.004061f0
add esp, 0x18
push esi
push eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb0]
push dword [ebp - 0x18]
call fcn.004257e0
push edi
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x50]
call fcn.004257e0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x9c]
cmp edx, 0x10
jb 0x407079
mov ecx, dword [ebp - 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40706f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407539
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xb4]
cmp edx, 0x10
jb 0x4070b7
mov ecx, dword [ebp - 0xc8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4070ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407539
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0xcc]
cmp edx, 0x10
jb 0x407110
mov ecx, dword [ebp - 0xe0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407106
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407539
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0xf
mov byte [ebp - 0xe0], 0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xe4]
cmp edx, 0x10
jb 0x407169
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40715f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407539
push edx
push ecx
call fcn.0042a0d6
add esp, 8
lea eax, [ebp - 0x34]
mov dword [ebp - 0xe8], 0
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0xe4], 0xf
push eax
push 0
push 0x18
sub esp, 0x18
mov byte [ebp - 0xf8], 0
mov ecx, esp
push 0x466eac
call fcn.004233e0
lea ecx, [ebp - 0xb0]
call fcn.004061f0
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x4071b5
mov eax, dword [eax]
cmp dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x50]
mov edi, dword [sym.imp.ADVAPI32.dll_RegGetValueA]
cmovae ecx, dword [ebp - 0x50]
push eax
push ecx
push connect
call edi
mov edx, dword [ebp - 0x9c]
test eax, eax
sete al
mov byte [ebp - 0x81], al
cmp edx, 0x10
jb 0x40721a
mov ecx, dword [ebp - 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40720a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40753e
push edx
push ecx
call fcn.0042a0d6
mov al, byte [ebp - 0x81]
add esp, 8
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
test al, al
je 0x40722f
call esi
cmp eax, dword [ebp - 0x78]
jbe 0x407234
push 0
call esi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0x18
sub esp, 0x18
mov ecx, esp
push 0x467224
call fcn.004233e0
lea ecx, [ebp - 0xb0]
call fcn.004061f0
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x407265
mov eax, dword [eax]
cmp dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x50]
push eax
cmovae ecx, dword [ebp - 0x50]
push ecx
push connect
call edi
mov edx, dword [ebp - 0x9c]
test eax, eax
sete al
mov byte [ebp - 0x81], al
cmp edx, 0x10
jb 0x4072c4
mov ecx, dword [ebp - 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4072b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407543
push edx
push ecx
call fcn.0042a0d6
mov al, byte [ebp - 0x81]
add esp, 8
push 1
test al, al
je 0x4072d3
call esi
cmp eax, dword [ebp - 0x74]
jbe 0x4072d8
push 1
call esi
mov dword [ebp - 0x74], eax
mov edi, dword [ebp - 0x94]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0x74]
mov esi, eax
push dword [ebp - 0x78]
mov dword [ebp - 0x8c], esi
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
push edi
push esi
mov dword [ebp - 0x88], edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push dword [ebp - 0x94]
mov dword [ebp - 0x90], eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
push 0
push edi
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x80], 0
push eax
call dword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x4073f8
push eax
call fcn.00432739
mov edi, eax
add esp, 4
mov dword [ebp - 0x98], edi
test edi, edi
je 0x4073f8
push edi
push dword [ebp - 0x80]
push dword [ebp - 0x14]
call dword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
xor esi, esi
cmp dword [ebp - 0x14], esi
jbe 0x4073e9
add edi, 0x30
nop word [eax + eax]
mov eax, dword [edi]
mov ecx, str.image_jpeg
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4073cd
test dx, dx
je 0x4073c9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4073cd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4073a7
xor eax, eax
jmp 0x4073d2
sbb eax, eax
or eax, 1
test eax, eax
je 0x4074bf
inc esi
add edi, 0x4c
cmp esi, dword [ebp - 0x14]
jb 0x4073a0
mov edi, dword [ebp - 0x98]
push edi
call fcn.00431ef1
mov esi, dword [ebp - 0x8c]
add esp, 4
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x70]
mov edi, dword [ebp - 0x7c]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 0
push ecx
push eax
push edi
call dword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
push dword [ebp - 0x90]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x88]
call esi
push dword [ebp - 0x94]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x40747b
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407471
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407548
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
cmp edx, 8
jb 0x4074e0
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4074d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407548
jmp 0x4074d6
mov ecx, dword [ebp - 0x98]
imul eax, esi, 0x4c
push ecx
movups xmm0, xmmword [eax + ecx]
movups xmmword [ebp - 0x70], xmm0
jmp 0x4073ea
push edx
push ecx
call fcn.0042a0d6
add esp, 8
push dword [ebp - 0x18]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x407519
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40750f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40754d
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429a60
mov esp, ebp
pop ebp
ret
call fcn.004026a0
call fcn.0042f0c9
call fcn.0042f0c9
call fcn.0042f0c9
call fcn.0042f0c9
call fcn.0042f0c9
int3