Function at 0x4038d0
Capabilities:
Delete registry value
Get proxy
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x808
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x403a55
lea eax, [esp + 0x10]
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c05
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea ebp, [esi + 0xe4]
push ecx
push ebp
push eax
push eax
push str.ProxyEnable
push edx
mov dword [esp + 0x2c], 4
mov dword [ebp], eax
call edi
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x418]
push eax
push ecx
push 0
push 0
push str.ProxyServer
push edx
mov dword [esp + 0x2c], 0x400
call edi
test eax, eax
lea ebx, [esi + 0xe0]
jne 0x403977
lea eax, [esp + 0x418]
mov ecx, ebx
push eax
call fcn.0040e3bb
jmp 0x40397e
mov ecx, ebx
call fcn.0040e2ef
mov edx, dword [esi + 0x60]
xor ecx, ecx
mov cx, word [esi + 0x64]
lea eax, [esp + 0x18]
push ecx
push edx
push str._s:_d
push 0x400
push eax
call fcn.0040495c
mov edi, eax
mov eax, dword [ebx]
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.0040571e
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0x1c
test eax, eax
je 0x4039f6
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edi
push edx
push 1
push 0
push str.ProxyServer
push eax
call esi
test eax, eax
je 0x4039f6
push 0x1f4
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push edi
push ecx
push 1
push 0
push str.ProxyServer
push edx
call esi
cmp dword [ebp], 0
jne 0x403a3d
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push str.ProxyEnable
push ecx
mov dword [esp + 0x2c], 1
call esi
test eax, eax
je 0x403a3d
push 0x1f4
call ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.ProxyEnable
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x10]
push edx
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WSOCK32.dll_accept
call edi
test eax, eax
jne 0x403bf6
mov eax, dword [esi + 0xe0]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x403b20
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.WSOCK32.dll_accept
call edi
test eax, eax
jne 0x403bb5
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.ProxyServer
push eax
call edi
test eax, eax
je 0x403af4
push 0x1f4
call ebp
mov ecx, dword [esp + 0x10]
push str.ProxyServer
push ecx
call edi
mov edx, dword [esp + 0x10]
push str.ProxyEnable
push edx
call edi
test eax, eax
je 0x403bb5
push 0x1f4
call ebp
mov eax, dword [esp + 0x10]
push str.ProxyEnable
push eax
call edi
jmp 0x403bb5
mov edx, dword [esi + 0x60]
xor ecx, ecx
mov cx, word [esi + 0x64]
lea eax, [esp + 0x18]
push ecx
push edx
push str._s:_d
push 0x400
push eax
call fcn.0040495c
mov eax, dword [esi + 0xe0]
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.0040571e
add esp, 0x1c
test eax, eax
je 0x403bb5
mov edx, dword [esi + 0xe0]
lea eax, [esp + 0x18]
push edx
push 0x41a0e0
push 0x400
push eax
call fcn.0040495c
mov edx, dword [esp + 0x20]
add esp, 0x10
mov edi, eax
lea ecx, [esp + 0x18]
push edi
push ecx
push 1
push 0
push str.ProxyServer
push edx
call ebx
test eax, eax
je 0x403bae
push 0x1f4
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edi
push eax
push 1
push 0
push str.ProxyServer
push ecx
call ebx
push 0x3e8
call ebp
mov eax, dword [esi + 0xe4]
add esi, 0xe4
test eax, eax
jne 0x403bf6
mov edx, dword [esp + 0x10]
push 4
push esi
push 4
push 0
push str.ProxyEnable
push edx
call ebx
test eax, eax
je 0x403bf6
push 0x1f4
call ebp
mov eax, dword [esp + 0x10]
push 4
push esi
push 4
push 0
push str.ProxyEnable
push eax
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403c05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret 4