Function at 0x49f090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61f333
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x554
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov al, byte [edi + 0xa15]
test al, al
jne 0x49f397
lea ecx, [edi + 0xa18]
mov dword [ebp - 0x40], ecx
call fcn.005bea10
push 0
push 0
mov ecx, edi
call fcn.005aaaa0
mov ecx, 0x6d2800
call fcn.005369a0
mov eax, dword [0x6d2804]
cmp eax, 1
je 0x49f397
cmp eax, 2
jne 0x49f3a8
test byte [0x6d2818], 0x10
je 0x49f381
mov eax, dword [edi + 0x20]
mov ecx, 0x6d2850
push eax
call fcn.004976c0
test eax, eax
jne 0x49f381
mov eax, dword [0x6cd768]
mov dword [ebp + 8], eax
mov dword [ebp - 0x20], eax
mov al, byte [0x6d2848]
mov byte [ebp - 4], 2
test al, al
je 0x49f180
cmp dword [edi + 0x44], 1
jne 0x49f180
mov ecx, dword [0x6d2828]
mov eax, dword [ecx - 8]
test eax, eax
je 0x49f294
mov edx, dword [0x6d282c]
mov eax, dword [edx - 8]
test eax, eax
je 0x49f294
push 0x6d2828
lea ecx, [ebp + 8]
call fcn.00603b75
push 0x6d282c
jmp 0x49f20f
mov al, byte [0x6d284a]
test al, al
je 0x49f1c4
cmp dword [edi + 0x44], 2
jne 0x49f1c4
mov eax, dword [0x6d2830]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x49f294
mov ecx, dword [0x6d2834]
mov eax, dword [ecx - 8]
test eax, eax
je 0x49f294
push 0x6d2830
lea ecx, [ebp + 8]
call fcn.00603b75
push 0x6d2834
jmp 0x49f20f
mov al, byte [0x6d2849]
test al, al
je 0x49f294
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x49f294
mov edx, dword [0x6d2838]
mov eax, dword [edx - 8]
test eax, eax
je 0x49f294
mov eax, dword [0x6d283c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x49f294
push 0x6d2838
lea ecx, [ebp + 8]
call fcn.00603b75
push 0x6d283c
lea ecx, [ebp - 0x20]
call fcn.00603b75
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005e7473
mov esi, eax
add esp, 4
test esi, esi
jle 0x49f369
mov eax, dword [0x6cd768]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x18]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, 0x6d2800
mov byte [ebp - 4], 4
call fcn.00536c20
test eax, eax
je 0x49f270
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
push eax
push ecx
push esi
push edx
mov ecx, edi
call fcn.005aac20
jmp 0x49f27c
mov eax, dword [ebp + 8]
push esi
push eax
mov ecx, edi
call fcn.005aaaa0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00603a3c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
jmp 0x49f364
mov al, byte [0x6d284b]
test al, al
je 0x49f369
mov ecx, dword [0x6d2840]
mov eax, dword [ecx - 8]
test eax, eax
je 0x49f369
mov eax, dword [0x6d2844]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x49f369
push eax
call fcn.005e7473
mov esi, eax
add esp, 4
test esi, esi
jle 0x49f369
mov eax, dword [0x6cd768]
mov ebx, 5
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x6d2844]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
push edx
mov edx, dword [0x6d2840]
push eax
push ecx
push edx
mov ecx, 0x6d2800
mov byte [ebp - 4], 6
call fcn.00537060
mov edx, dword [0x6d2844]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov eax, dword [0x6d2840]
push ecx
push edx
push eax
mov ecx, 0x6d2800
call fcn.00536c20
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
mov edx, dword [0x6d2840]
push eax
push ecx
mov ecx, dword [ebp - 0x40]
push esi
push edx
call fcn.005bea30
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00603a3c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00603a3c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00603a3c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov al, byte [0x6d2818]
test al, 8
jne 0x49f38e
test al, 4
je 0x49f397
push edi
call fcn.0049e9a0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 4
jne 0x49f38e
test al, 8
jne 0x49f38e
test al, 0x10
je 0x49f397
push str.ExceptionProxyServers
lea ecx, [ebp - 0x4c]
call fcn.00497390
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 7
call fcn.004976c0
test eax, eax
je 0x49f3f2
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00497430
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6cd768]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x44]
mov byte [ebp - 4], 0xd
sub eax, 0
je 0x49f4bd
dec eax
je 0x49f475
dec eax
je 0x49f42a
push 0
push 0
mov ecx, edi
jmp 0x49f832
push str.UseHttpsProxy
lea ecx, [ebp - 0x1c]
call fcn.00603bc5
push str.HttpsProxy
lea ecx, [ebp - 0x18]
call fcn.00603bc5
push str.HttpsPort
lea ecx, [ebp - 0x28]
call fcn.00603bc5
push str.HttpsUserName
lea ecx, [ebp - 0x24]
call fcn.00603bc5
push str.HttpsPasword
lea ecx, [ebp - 0x30]
call fcn.00603bc5
push str.HttpsEncPassword
jmp 0x49f503
push str.UseHttpProxy
lea ecx, [ebp - 0x1c]
call fcn.00603bc5
push str.HttpProxy
lea ecx, [ebp - 0x18]
call fcn.00603bc5
push str.HttpPort
lea ecx, [ebp - 0x28]
call fcn.00603bc5
push str.HttpUserName
lea ecx, [ebp - 0x24]
call fcn.00603bc5
push str.HttpPasword
lea ecx, [ebp - 0x30]
call fcn.00603bc5
push str.HttpEncPassword
jmp 0x49f503
push str.UseFtpProxy
lea ecx, [ebp - 0x1c]
call fcn.00603bc5
push str.FtpProxy
lea ecx, [ebp - 0x18]
call fcn.00603bc5
push str.FtpPort
lea ecx, [ebp - 0x28]
call fcn.00603bc5
push str.FtpUserName
lea ecx, [ebp - 0x24]
call fcn.00603bc5
push str.FtpPasword
lea ecx, [ebp - 0x30]
call fcn.00603bc5
push str.FtpEncPassword
lea ecx, [ebp - 0x2c]
call fcn.00603bc5
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x20]
push ecx
mov ecx, dword [0x6d2354]
push edx
push 0
push 0
push eax
push ecx
mov dword [ebp - 0x14], 4
call esi
test eax, eax
jne 0x49f67f
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x49f67f
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x150]
lea edx, [ebp - 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x150]
push edx
mov edx, dword [0x6d2354]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x14], 0x100
call esi
test eax, eax
jne 0x49f67f
lea edi, [ebp - 0x150]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49f67f
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x38], eax
push ecx
mov ecx, dword [0x6d2354]
push edx
push eax
mov word [ebp - 0x34], ax
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0xa
push eax
push ecx
call esi
test eax, eax
jne 0x49f67f
lea edx, [ebp - 0x3c]
push edx
call fcn.005e7473
mov ebx, eax
add esp, 4
test ebx, ebx
jle 0x49f67f
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x250]
mov edx, dword [ebp - 0x24]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp - 0x350]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x250]
push eax
mov eax, dword [0x6d2354]
push ecx
push 0
push 0
push edx
push eax
mov dword [ebp - 0x14], 0x100
call esi
lea edi, [ebp - 0x250]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49f672
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x350]
push ecx
mov ecx, dword [0x6d2354]
push edx
push eax
push 0x100
push ecx
call fcn.005b2ef0
add esp, 0x14
test eax, eax
je 0x49f672
lea edx, [ebp - 0x350]
lea eax, [ebp - 0x250]
push edx
push eax
lea ecx, [ebp - 0x150]
push ebx
push ecx
mov ecx, dword [ebp + 8]
call fcn.005aac20
jmp 0x49f837
lea edx, [ebp - 0x150]
push ebx
push edx
jmp 0x49f82f
mov edx, dword [0x6d2354]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x20]
push eax
push ecx
push 0
push 0
push str.bUseSocks
push edx
mov dword [ebp - 0x14], 4
call esi
test eax, eax
jne 0x49f82b
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x49f82b
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x150]
mov edx, dword [0x6d2354]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x150]
push eax
push ecx
push 0
push 0
push str.SocksHost
push edx
mov dword [ebp - 0x14], 0x100
call esi
test eax, eax
jne 0x49f82b
lea edi, [ebp - 0x150]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49f82b
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x38], eax
push ecx
push edx
push eax
mov word [ebp - 0x34], ax
push eax
mov eax, dword [0x6d2354]
push str.SocksPort
push eax
mov dword [ebp - 0x14], 0xa
call esi
test eax, eax
jne 0x49f82b
lea ecx, [ebp - 0x3c]
push ecx
call fcn.005e7473
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
jle 0x49f82b
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x250]
lea edx, [ebp - 0x14]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp - 0x350]
rep stosd dword es:[edi], eax
mov ecx, dword [0x6d2354]
lea eax, [ebp - 0x250]
xor ebx, ebx
push edx
push eax
push ebx
push ebx
push str.SocksUser
push ecx
mov dword [ebp + 8], 5
mov dword [ebp - 0x14], 0x100
call esi
mov eax, dword [0x6d2354]
lea edx, [ebp - 0x350]
push edx
push str.SocksPass
push 0x100
push eax
call fcn.005b3120
mov eax, dword [0x6d2354]
add esp, 0x10
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x20]
push ecx
push edx
push ebx
push ebx
mov edi, 4
push str.SocksType
push eax
mov dword [ebp - 0x14], edi
call esi
test eax, eax
jne 0x49f7d8
mov ecx, dword [ebp - 0x20]
mov dword [ebp + 8], ecx
mov ecx, dword [0x6d2354]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x20]
push edx
push eax
push 0
push 0
push str.Socks5ProxyDNS
push ecx
mov dword [ebp - 0x14], edi
call esi
test eax, eax
jne 0x49f803
mov eax, dword [ebp - 0x20]
xor ebx, ebx
test eax, eax
setne bl
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x350]
lea eax, [ebp - 0x250]
push edx
mov edx, dword [ebp - 0x50]
push eax
push ebx
push ecx
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x150]
push edx
push eax
call fcn.005bea30
jmp 0x49f837
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.005aaaa0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call fcn.00603a3c
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.00603a3c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.00603a3c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00603a3c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00603a3c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00603a3c
jmp 0x49f3d5