Function at 0x401dc5
Capabilities:
Delete file
Download url
Get common file path
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0xeb4]
sub esp, 0xf34
mov eax, dword [0x4240b8]
push ebx
push esi
push edi
push 0xa
pop ecx
mov esi, str._http:__www.lava_lava.com_cgi_bin_update_
lea edi, [ebp + 0x3a4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp + 0xeb0], eax
xor eax, eax
mov ecx, 0xf5
lea edi, [ebp + 0x3ce]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 6
pop ecx
mov esi, str._http:__www.lava_lava.com_
lea edi, [ebp + 0xcac]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x39
xor eax, eax
pop ecx
lea edi, [ebp + 0xcc7]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
xor ebx, ebx
mov byte [ebp + 0x7a8], bl
mov ecx, 0xff
lea edi, [ebp + 0x7a9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x400
push esi
stosb byte es:[edi], al
lea eax, [ebp - 0x5c]
push ebx
push eax
mov dword [ebp - 0x60], eax
call fcn.0040d9f0
lea eax, [ebp - 0x80]
push str._nWinINet_Proxy_Test_Program_output:_n
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x80], 0x4019e7
mov dword [ebp - 0x7c], 0x401a29
mov dword [ebp - 0x78], fcn.0040189e
mov dword [ebp - 0x74], 0x401a75
mov dword [ebp - 0x68], eax
call fcn.00409a2f
add esp, 0x10
push str.jsproxy.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
jne 0x401ea7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadLibrary
jmp 0x402057
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetInitializeAutoProxyDll
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x70], eax
je 0x40204b
push str.InternetDeInitializeAutoProxyDll
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x64], eax
je 0x40204b
push str.InternetGetProxyInfo
push edi
call esi
mov esi, eax
cmp esi, ebx
je 0x40204b
cmp dword [ebp + 0xebc], ebx
lea eax, [ebp + 0x7a8]
je 0x401f67
push dword [ebp + 0xebc]
push eax
call fcn.0040dba0
pop ecx
pop ecx
lea eax, [ebp + 0x7a8]
push eax
push str._n__WPAD_Location_is:__S_n
call fcn.00409a2f
pop ecx
pop ecx
lea eax, [ebp + 0xba8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0xdac]
push eax
push ebx
push ebx
lea eax, [ebp + 0xba8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
push ebx
lea eax, [ebp + 0xdac]
push eax
lea eax, [ebp + 0x7a8]
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x401f8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41c978
jmp 0x402057
push 3
push 0x400
push eax
call dword [sym.imp.WININET.dll_DetectAutoProxyUrl]
test eax, eax
jne 0x401f01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41c9d4
jmp 0x402057
push ebx
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp + 0xdac]
push eax
push ebx
call dword [ebp - 0x70]
cmp eax, ebx
jne 0x401fb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41c938
jmp 0x402057
push eax
push str._n__InternetInitializeAutoProxyDll_returned:__d_n
call fcn.00409a2f
pop ecx
pop ecx
lea eax, [ebp + 0xdac]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x100
lea eax, [ebp + 0xcac]
push eax
push 0x401
lea eax, [ebp + 0x3a4]
push eax
call esi
test eax, eax
jne 0x401ffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41c8a8
jmp 0x402057
push dword [ebp - 0x60]
push str._n__Proxy_is:__S_n
call fcn.00409a2f
mov ecx, dword [ebp - 0x60]
push 0x425dbc
push 0x425dc0
push 0x425db8
call fcn.00401ab1
add esp, 0x14
push ebx
push ebx
call dword [ebp - 0x64]
test eax, eax
jne 0x40203c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41c840
jmp 0x402057
push 0x41c80c
call fcn.00409a2f
pop ecx
xor eax, eax
jmp 0x402067
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41c9fc
push str._n__ERROR:__s_failed_with_error_number__d._n
call fcn.00409a2f
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [ebp + 0xeb0]
pop edi
pop esi
pop ebx
call fcn.00410647
add ebp, 0xeb4
leave
ret