Function at 0x4036c0
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420370
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42d030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], ebx
mov edx, dword [0x42da34]
mov eax, dword [edx + 0xc]
mov ecx, 0x42da34
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings
mov dword [ebp - 4], ebx
push 0x80000001
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4037a2
mov ecx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push str.ProxyEnable
push ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 4
call edi
cmp dword [ebp - 0x18], ebx
je 0x403798
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x800
or eax, ecx
jge 0x403777
mov ecx, 0x800
lea eax, [ebp - 0x14]
call fcn.00402470
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
push edx
push esi
push ebx
push ebx
push str.ProxyServer
push eax
mov dword [ebp - 0x20], 0x1000
call edi
lea edi, [ebp - 0x14]
call fcn.00403f60
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi - 0xc]
cmp eax, ebx
je 0x403c7f
lea ecx, [ecx]
test eax, eax
jg 0x4037bc
or ebx, 0xffffffff
mov dword [ebp - 0x20], ebx
jmp 0x4037dd
push 0x3b
push esi
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
jne 0x4037d4
or ebx, 0xffffffff
mov dword [ebp - 0x20], ebx
jmp 0x4037dd
sub eax, esi
sar eax, 1
mov ebx, eax
mov dword [ebp - 0x20], eax
mov edx, dword [0x42da34]
mov eax, dword [edx + 0xc]
mov ecx, 0x42da34
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
cmp ebx, 0xffffffff
mov byte [ebp - 4], 1
jne 0x4038ae
mov ebx, dword [ebp - 0x10]
lea edi, [esi - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x403854
cmp dword [ebx + 0xc], 0
jl 0x403847
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x403847
mov eax, edi
call fcn.00404070
mov dword [ebp - 0x20], eax
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40383c
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x403854
mov ebx, dword [esi - 0xc]
push esi
lea ecx, [ebp - 0x10]
push ecx
call fcn.00402370
cmp dword [edi + 4], 0
mov ebx, dword [edi]
je 0x403944
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jge 0x403884
cmp dword [esi - 8], 0
jl 0x403e1a
mov dword [esi - 0xc], 0
mov word [esi], 0
jmp 0x403944
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40389a
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
jmp 0x403944
mov eax, ebx
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x14]
call fcn.00403ef0
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x403913
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x403903
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x403903
call fcn.00404070
mov dword [ebp - 0x20], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4038f8
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
jmp 0x403913
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00402370
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403936
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebx + 1]
xor ecx, ecx
call fcn.00403e30
mov edx, dword [ebp - 0x10]
cmp dword [edx - 0xc], 0
jg 0x403952
or esi, 0xffffffff
jmp 0x403971
mov eax, dword [ebp - 0x10]
push 0x3d
push eax
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
jne 0x40396a
or esi, 0xffffffff
jmp 0x403971
sub eax, dword [ebp - 0x10]
sar eax, 1
mov esi, eax
mov edx, dword [0x42da34]
mov eax, dword [edx + 0xc]
mov ecx, 0x42da34
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
cmp esi, 0xffffffff
mov byte [ebp - 4], 3
je 0x403a27
mov eax, esi
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x10]
call fcn.00403ef0
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x4039f6
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4039e9
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4039e9
call fcn.00404070
mov dword [ebp - 0x18], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4039de
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
mov dword [ebp - 0x20], ecx
jmp 0x4039f6
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00402370
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10]
push ecx
lea eax, [esi + 1]
xor ecx, ecx
call fcn.00403e30
mov edx, dword [0x42da34]
mov eax, dword [edx + 0xc]
mov ecx, 0x42da34
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x20]
mov ecx, str.http
mov eax, esi
jmp 0x403a50
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403a76
test dx, dx
je 0x403a72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403a76
add eax, 4
add ecx, 4
test dx, dx
jne 0x403a50
xor eax, eax
jmp 0x403a7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x403cc7
cmp dword [esi - 0xc], 0
je 0x403cc7
mov ecx, 0x423b38
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403ac6
test dx, dx
je 0x403ac2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403ac6
add eax, 4
add ecx, 4
test dx, dx
jne 0x403aa0
xor eax, eax
jmp 0x403acb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x403b4c
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403af4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x403c7f
mov esi, ecx
jmp 0x4037b0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jle 0x403cb7
push 0x3a
push esi
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
je 0x403cb7
sub eax, esi
sar eax, 1
mov esi, eax
js 0x403cb7
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x10]
call fcn.00403ef0
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00403fa0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403bb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10]
push ecx
lea eax, [esi + 1]
xor ecx, ecx
call fcn.00403e30
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR80.dll__wtoi]
movzx edi, ax
add esp, 4
test di, di
jne 0x403bdb
mov edi, 0x438
mov ebx, dword [ebp - 0x18]
mov eax, 3
mov esi, dword [ebp + 8]
push ebx
lea ecx, [esi + 4]
push 0x1005
push ecx
mov dword [esi], eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
xor eax, eax
mov word [esi + 0x2010], ax
mov word [esi + 0x2052], ax
mov word [esi + 0x2094], ax
lea eax, [ebx - 0x10]
add esp, 0xc
mov word [esi + 0x200e], di
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403c39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ca5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
lea edi, [ebp - 0x18]
call fcn.00403fa0
jmp 0x403bd6
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jle 0x403db1
mov ecx, eax
push 0x3a
push ecx
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
je 0x403db1
sub eax, dword [ebp - 0x10]
sar eax, 1
mov edi, eax
mov dword [ebp - 0x28], edi
js 0x403db1
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x10]
call fcn.00403ef0
mov byte [ebp - 4], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x403d5c
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x403d4c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x403d4c
call fcn.00404070
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x403d41
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebx, [edi + 0x10]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x18], ebx
jmp 0x403d5c
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402370
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403d7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10]
push ecx
lea eax, [edi + 1]
xor ecx, ecx
call fcn.00403e30
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR80.dll__wtoi]
movzx edi, ax
add esp, 4
test di, di
jne 0x403da7
mov edi, 0x50
mov eax, 2
jmp 0x403be3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x403da2
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x403dfa
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x403dfa
call fcn.00404070
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x403dea
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov edi, 0x50
add ebx, 0x10
lea eax, [edi - 0x4e]
jmp 0x403be3
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402370
mov ebx, dword [ebp - 0x18]
mov edi, 0x50
lea eax, [edi - 0x4e]
jmp 0x403be3
push 0x80070057
call fcn.00402710
int3