Function at 0x414760
Capabilities:
Check os version
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x457ccd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x498
mov al, byte [esp + 3]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, 0x400
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 4
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov esi, dword [0x45a024]
lea ecx, [esp + 0x2c]
push ecx
push str.software_nec_usa_sockscap32connections
push 0x80000001
mov dword [esp + 0x4bc], ebx
call esi
test eax, eax
je 0x414851
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4b0], 0xffffffff
cmp eax, ebx
je 0x414849
mov eax, dword [esp + 0x3c]
push ebx
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x40], eax
call fcn.00404f30
mov eax, dword [esp + 0x5c]
dec eax
mov dword [esp + 0x5c], eax
je 0x41483a
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
cmp edx, eax
jne 0x414843
lea ecx, [esp + 0x30]
call fcn.00404d40
cmp dword [esp + 0x5c], ebx
jne 0x414810
or eax, 0xffffffff
jmp 0x414f9e
lea eax, [esp + 0x24]
push eax
push str.software_nec_usa_sockscap32protocol
push 0x80000001
call esi
test eax, eax
je 0x4148ba
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4b0], 0xffffffff
cmp eax, ebx
je 0x4148b2
mov eax, dword [esp + 0x3c]
push ebx
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x40], eax
call fcn.00404f30
mov eax, dword [esp + 0x5c]
dec eax
mov dword [esp + 0x5c], eax
je 0x4148a3
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
cmp ecx, eax
jne 0x4148ac
lea ecx, [esp + 0x30]
call fcn.00404d40
cmp dword [esp + 0x5c], ebx
jne 0x414879
or eax, 0xffffffff
jmp 0x414f9e
lea edx, [esp + 0x70]
push edx
push str.software_nec_usa_sockscap32_appprofiles
push 0x80000001
call esi
test eax, eax
je 0x414923
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4b0], 0xffffffff
cmp eax, ebx
je 0x41491b
mov eax, dword [esp + 0x3c]
push ebx
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x40], eax
call fcn.00404f30
mov eax, dword [esp + 0x5c]
dec eax
mov dword [esp + 0x5c], eax
je 0x41490c
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jne 0x414915
lea ecx, [esp + 0x30]
call fcn.00404d40
cmp dword [esp + 0x5c], ebx
jne 0x4148e2
or eax, 0xffffffff
jmp 0x414f9e
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x414f2f
cmp dword [esp + 0x24], ebx
je 0x414f2f
lea ecx, [esp + 0x14]
lea edx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x1c]
push edx
push ecx
push ebx
push str.DirectConnections
push eax
mov dword [edi + 0x10], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 1
call dword [0x45a014]
test eax, eax
je 0x41497c
or esi, 0xffffffff
call dword [0x45a464]
mov dword [edi + 0x10], eax
jmp 0x414f32
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x7c], dl
call fcn.00404380
mov edi, 0x46cc54
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x7c]
push ebp
call fcn.004049a0
test al, al
je 0x4149d2
mov edi, dword [esp + 0x7c]
mov ecx, ebp
mov eax, ecx
mov esi, 0x46cc54
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7c]
call fcn.00404980
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x64], cl
lea ecx, [esp + 0x64]
mov byte [esp + 0x4b4], 1
call fcn.00404380
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x64]
push ebp
call fcn.004049a0
test al, al
je 0x414a34
mov edi, dword [esp + 0x64]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0xa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x64]
call fcn.00404980
lea eax, [esp + 0x78]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov byte [esp + 0x4bc], 2
call fcn.00412da0
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x4b4], 1
call fcn.00404380
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4b4], bl
call fcn.00404380
mov eax, dword [esp + 0x5c]
xor ebp, ebp
cmp eax, ebx
jbe 0x414b7b
mov eax, dword [esp + 0x1c]
lea esi, [eax + 0x14]
push 0x40
call fcn.004428c1
mov edi, eax
add esp, 4
mov dword [esp + 0x88], edi
cmp edi, ebx
mov byte [esp + 0x4b0], 3
je 0x414b02
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x40]
push ebp
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
call fcn.0040b810
mov edx, dword [esp + 0x80]
mov eax, dword [edx + 4]
cmp eax, ebx
jne 0x414af3
mov eax, 0x45adc8
push 0x46c3a0
push eax
mov ecx, edi
call fcn.00417200
jmp 0x414b04
xor eax, eax
mov ecx, dword [esi + 0x2c]
mov byte [esp + 0x4b0], bl
cmp ecx, ebx
mov dword [esp + 0x20], eax
je 0x414b49
mov ecx, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
cmp ecx, edi
je 0x414b49
lea edx, [ecx + 4]
cmp edx, edi
mov dword [esi + 0x1c], edx
jne 0x414b41
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.0040d3d0
add esp, 8
mov ecx, esi
call fcn.0040d1b0
jmp 0x414b67
cmp ecx, ebx
je 0x414b67
mov dword [ecx], eax
jmp 0x414b67
mov ecx, esi
call fcn.0040d1b0
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [eax + 4]
mov dword [esi + 0x1c], ecx
call fcn.0040d3d0
add esp, 8
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x5c]
inc edx
inc ebp
cmp ebp, eax
mov dword [esi + 0x2c], edx
jb 0x414a8e
mov esi, dword [0x45a014]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xa8]
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push str.SocksServer
push eax
mov dword [esp + 0x2c], 0x400
mov dword [esp + 0x30], 1
call esi
test eax, eax
jne 0x414c0c
lea edx, [esp + 0x14]
lea eax, [esp + 0x90]
push edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
mov edi, 4
push str.SocksPort
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call esi
test eax, eax
jne 0x414c0c
lea edx, [esp + 0x14]
lea eax, [esp + 0x74]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
push str.SocksVersion32
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call esi
test eax, eax
je 0x414c21
or esi, 0xffffffff
call dword [0x45a464]
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x10], eax
jmp 0x414f32
mov edi, dword [esp + 0x74]
xor edx, edx
cmp edi, 5
push 0x40
sete dl
add edx, 4
mov dword [esp + 0x78], edx
call fcn.004428c1
mov esi, eax
add esp, 4
mov dword [esp + 0x88], esi
cmp esi, ebx
mov byte [esp + 0x4b0], 4
je 0x414c8e
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x90]
push 0x46c3a0
push 0x46c3a0
push eax
lea ecx, [esp + 0xa8]
push 0xa
push ecx
push edx
call fcn.00429af7
add esp, 0xc
mov ecx, esi
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.00417040
jmp 0x414c90
xor eax, eax
mov ebp, dword [esp + 0x1c]
mov byte [esp + 0x4b0], bl
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0x40]
lea esi, [ebp + 0x14]
cmp ecx, ebx
je 0x414cdc
mov ecx, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
cmp ecx, edi
je 0x414cdc
lea edx, [ecx + 4]
cmp edx, edi
mov dword [esi + 0x1c], edx
jne 0x414cd4
lea edx, [esp + 0x20]
push edx
push ecx
call fcn.0040d3d0
add esp, 8
mov ecx, esi
call fcn.0040d1b0
jmp 0x414cfa
cmp ecx, ebx
je 0x414cfa
mov dword [ecx], eax
jmp 0x414cfa
mov ecx, esi
call fcn.0040d1b0
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [eax + 4]
mov dword [esi + 0x1c], ecx
call fcn.0040d3d0
add esp, 8
mov edi, dword [esi + 0x2c]
mov eax, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x94]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
inc edi
push str.ResolveType
push eax
mov dword [esi + 0x2c], edi
call dword [0x45a014]
test eax, eax
je 0x414d46
or esi, 0xffffffff
call dword [0x45a464]
mov dword [ebp + 0x10], eax
jmp 0x414f32
mov eax, dword [esp + 0x94]
cmp eax, ebx
jne 0x414d58
mov eax, 0x46b4c0
jmp 0x414d67
cmp eax, 1
mov eax, 0x46cbc8
je 0x414d67
mov eax, 0x46b4bc
push eax
push str.DNSPROXY
mov ecx, ebp
call fcn.00414fe0
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0xa8]
push 0x400
push ecx
push ebx
push edx
call dword [0x45a040]
test eax, eax
jne 0x414f2b
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x28]
lea ecx, [esp + 0xa8]
push eax
push ecx
push edx
call dword [0x45a024]
test eax, eax
jne 0x414efb
lea eax, [esp + 0x14]
lea ecx, [esp + 0xa8]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push str.commandpath
push eax
mov dword [esp + 0x2c], 0x400
mov dword [esp + 0x30], 1
call dword [0x45a014]
test eax, eax
jne 0x414eec
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x64], cl
lea ecx, [esp + 0x64]
call fcn.00404380
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x64]
push ebp
call fcn.004049a0
test al, al
je 0x414e4b
mov edi, dword [esp + 0x64]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0xa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x68], ebp
mov byte [eax + ebp], bl
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x4b0], 5
mov eax, dword [ecx + 0x70]
lea esi, [ecx + 0x44]
cmp eax, ebx
je 0x414eb5
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp ecx, edx
je 0x414eb5
lea eax, [ecx + 0x10]
cmp eax, edx
jne 0x414e8c
lea edx, [esp + 0x60]
mov dword [esi + 0x1c], eax
push edx
push ecx
call fcn.00404dc0
add esp, 8
mov ecx, esi
call fcn.00404740
jmp 0x414ed3
mov dword [esp + 0x88], ecx
mov dword [esi + 0x1c], eax
mov dword [esp + 0x98], ecx
cmp ecx, ebx
mov byte [esp + 0x4b0], 6
je 0x414ed3
lea eax, [esp + 0x60]
push eax
call fcn.00404020
jmp 0x414ed3
mov ecx, esi
call fcn.00404740
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x60]
push edx
push eax
lea ecx, [eax + 0x10]
mov dword [esi + 0x1c], ecx
call fcn.00404dc0
add esp, 8
mov ecx, dword [esi + 0x2c]
push 1
inc ecx
mov byte [esp + 0x4b4], bl
mov dword [esi + 0x2c], ecx
lea ecx, [esp + 0x64]
call fcn.00404380
mov eax, dword [esp + 0x28]
push eax
call dword [0x45a018]
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0xa8]
inc eax
push 0x400
push ecx
push eax
push edx
mov dword [esp + 0x9c], eax
call dword [0x45a040]
test eax, eax
je 0x414d95
xor esi, esi
jmp 0x414f32
or esi, 0xffffffff
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x414f41
push eax
call dword [0x45a018]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x414f50
push eax
call dword [0x45a018]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4b0], 0xffffffff
cmp eax, ebx
je 0x414f9c
mov eax, dword [esp + 0x3c]
push ebx
mov ecx, eax
add eax, 0x10
mov dword [esp + 0x40], eax
call fcn.00404f30
mov eax, dword [esp + 0x5c]
dec eax
mov dword [esp + 0x5c], eax
je 0x414f8d
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jne 0x414f96
lea ecx, [esp + 0x30]
call fcn.00404d40
cmp dword [esp + 0x5c], ebx
jne 0x414f63
mov eax, esi
mov ecx, dword [esp + 0x4a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4a4
ret