Function at 0x40dff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x631171
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x50], ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
call fcn.00407de0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push str._d._d._d._d
push dword [ebx + 0x600]
call fcn.004170f0
add esp, 0x18
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x40e982
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push str._04d_d_03d_04d
push eax
call fcn.00402970
mov esi, dword [ebp - 0x18]
push esi
call fcn.0060c37b
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40e0bc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x40e98c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x80]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x34], 0
call fcn.005d0ad0
add esp, 4
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x40e0fc
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x34]
call fcn.00412270
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x6c]
cmp edx, 0x10
jb 0x40e13d
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e133
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e996
push edx
push ecx
call fcn.005c385c
add esp, 8
mov eax, dword [ebx + 0x5b0]
add ebx, 0x5b0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
mov edi, dword [eax - 0xc]
cmp edi, 1
jg 0x40e177
add eax, 0xfffffff0
push eax
call fcn.00401b80
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
jmp 0x40e1aa
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x40e187
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x40e193
call fcn.004021b0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push 1
lea eax, [eax + edi*2]
add eax, 0xfffffffe
push eax
call fcn.00416690
mov edi, dword [ebp - 0x14]
mov ecx, 5
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], ecx
mov eax, edi
mov dword [ebp - 0x2c], ecx
mov ecx, 0x6a2f8c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e1e6
test dx, dx
je 0x40e1e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e1e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e1c0
xor eax, eax
jmp 0x40e1eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40e28a
mov eax, dword [ebx]
mov ebx, dword [eax - 0xc]
cmp ebx, 1
jg 0x40e20e
add eax, 0xfffffff0
push eax
call fcn.00401b80
add esp, 4
add eax, 0x10
jmp 0x40e248
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x40e21e
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x40e22a
call fcn.004021b0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x20]
push 1
mov eax, dword [eax + 0x5b0]
lea eax, [eax + ebx*2]
add eax, 0xfffffffe
push eax
call fcn.00416690
mov eax, dword [ebp - 0x20]
mov ecx, 0xf
mov edx, 0x6a0b08
mov dword [ebp - 0x20], ecx
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x40e27d
test bx, bx
je 0x40e279
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x40e27d
add ecx, 4
add edx, 4
test bx, bx
jne 0x40e257
xor ecx, ecx
jmp 0x40e282
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x40e28d
xor bl, bl
jmp 0x40e28f
mov eax, dword [ebp - 0x20]
mov bl, 1
mov ecx, dword [ebp - 0x20]
test cl, 2
je 0x40e2b5
and ecx, 0xfffffffd
lea edx, [eax - 0x10]
mov dword [ebp - 0x2c], ecx
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e2b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 4
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40e2d4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x50]
test bl, bl
je 0x40e36f
mov eax, dword [ecx + 0x5b0]
add ecx, 0x5b0
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00411ed0
mov byte [ebp - 4], 6
lea edi, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40e34e
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40e33f
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40e33f
push edx
call fcn.00401b80
add esp, 4
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40e337
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x40e34e
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00401e40
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e3c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40e3c4
mov ecx, dword [ecx + 0x5b0]
lea edi, [esi - 0x10]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40e3c4
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40e3b5
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40e3b5
push edx
call fcn.00401b80
add esp, 4
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40e3ad
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x40e3c4
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00401e40
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x30], 0
push eax
call fcn.005d0af0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call fcn.0047ffd0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x40e41d
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e413
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e99b
push edx
push ecx
call fcn.005c385c
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 0xa
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x40e9a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x6a0b0c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00417800
test al, al
jne 0x40e483
push 9
push 0x6a0b0c
lea ecx, [ebp - 0x14]
call fcn.00401e40
push str.GSoSoftGSoInput_
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xc
call fcn.004133d0
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov edx, eax
mov byte [ebp - 4], 0xd
cmp dword [edx + 0x14], 8
jb 0x40e4af
mov edx, dword [edx]
test edx, edx
jne 0x40e4b7
xor ecx, ecx
jmp 0x40e4cf
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e4c0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00417970
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xc
call fcn.00402f20
sub esp, 8
lea ecx, [ebp - 0x40]
push 0x2001f
sub esp, 8
push dword [ebp - 0x14]
push reloc.WS2_32.dll_bind
call fcn.00416f80
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40e66b
mov edi, dword [ebp - 0x40]
test esi, esi
je 0x40e544
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e520
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.AppPath
push edi
call ebx
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40e578
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x24], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40e553
sub edx, dword [ebp - 0x24]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push 0x6a0b30
push edi
call ebx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40e5ac
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x24], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40e587
sub edx, dword [ebp - 0x24]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push str.uniqueId
push edi
call ebx
mov eax, dword [ebp - 0x1c]
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push str.UnionId
push edi
call ebx
mov ecx, dword [ebp - 0x50]
push 4
mov eax, dword [ecx + 0x60c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push str.OEMUnionId
push edi
call ebx
mov ecx, dword [ebp - 0x50]
push 4
mov eax, dword [ecx + 0x608]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push str.OemID
push edi
call ebx
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0x604]
test edx, edx
je 0x40e63a
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e615
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x6a0b80
push edi
call ebx
mov eax, dword [ebp - 0x28]
push 4
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 4
push 0
push str.Version
push edi
call ebx
test edi, edi
je 0x40e664
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 9
push 0x6a0b0c
lea ecx, [ebp - 0x14]
call fcn.00401e40
push str.GSoSoftGSoInput_
lea ecx, [ebp - 0xd0]
call fcn.004133d0
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov edx, eax
mov byte [ebp - 4], 0xe
cmp dword [edx + 0x14], 8
jb 0x40e6a2
mov edx, dword [edx]
test edx, edx
jne 0x40e6aa
xor ecx, ecx
jmp 0x40e6bf
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e6b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00417970
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xc
call fcn.00402f20
sub esp, 8
lea ecx, [ebp - 0x40]
push 0x2001f
sub esp, 8
push dword [ebp - 0x14]
push reloc.WS2_32.dll_bind
call fcn.00416f80
test eax, eax
jne 0x40e73d
mov edi, dword [ebp - 0x40]
test esi, esi
je 0x40e724
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e700
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.InstallDir
push edi
call ebx
test edi, edi
je 0x40e736
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 9
push 0x6a0b0c
lea ecx, [ebp - 0x14]
call fcn.00401e40
push ecx
lea ecx, [ebp - 0x178]
call fcn.00413c90
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov edx, eax
mov byte [ebp - 4], 0xf
cmp dword [edx + 0x14], 8
jb 0x40e770
mov edx, dword [edx]
test edx, edx
jne 0x40e778
xor ecx, ecx
jmp 0x40e78f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e780
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00417970
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xc
call fcn.00402f20
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
sub esp, 8
push 0x2001f
sub esp, 8
push edi
push reloc.WS2_32.dll_bind
call fcn.00416f80
test eax, eax
jne 0x40e8e1
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00413360
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x40e7e9
mov edx, dword [edx]
mov ebx, dword [ebp - 0x40]
test edx, edx
je 0x40e829
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x28], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e800
sub ecx, dword [ebp - 0x28]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.AppName
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x68]
call fcn.00402f20
push str.GSoInput
lea ecx, [ebp - 0xac]
call fcn.00413540
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x40e855
mov edx, dword [edx]
test edx, edx
je 0x40e88a
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x28], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e861
sub ecx, dword [ebp - 0x28]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.KeyName
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x68]
call fcn.00402f20
test esi, esi
je 0x40e8c8
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e8a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.AppPath
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x40e8d8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 0
jmp 0x40e8e4
mov ebx, dword [ebp - 0x40]
mov byte [ebp - 4], 0xa
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40e900
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x40e90b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e92c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e94a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40e966
mov ecx, dword [esi]
push esi
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f90
push 0x80004005
call fcn.00401f90
call fcn.00606fc9
call fcn.00606fc9
push 0x80004005
call fcn.00401f90
int3