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 [0x4290c8]
push ebx
push esi
push edi
push 0xa
pop ecx
mov esi, str._http:__cu.lava_lava.com_cgi_bin_update_
lea edi, [ebp + 0x3a4]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp + 0xeb0], eax
xor eax, eax
push 6
mov ecx, 0xf6
lea edi, [ebp + 0x3cd]
rep stosd dword es:[edi], eax
pop ecx
mov esi, str._http:__cu.lava_lava.com_
lea edi, [ebp + 0xcac]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x39
pop ecx
lea edi, [ebp + 0xcc6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
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.0040fb60
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.0040b9f0
add esp, 0x10
push str.jsproxy.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
jne 0x401ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadLibrary
jmp 0x402051
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetInitializeAutoProxyDll
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x70], eax
je 0x402045
push str.InternetDeInitializeAutoProxyDll
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x64], eax
je 0x402045
push str.InternetGetProxyInfo
push edi
call esi
mov esi, eax
cmp esi, ebx
je 0x402045
cmp dword [ebp + 0xebc], ebx
lea eax, [ebp + 0x7a8]
je 0x401f61
push dword [ebp + 0xebc]
push eax
call fcn.0040fd10
pop ecx
pop ecx
lea eax, [ebp + 0x7a8]
push eax
push str._n__WPAD_Location_is:__S_n
call fcn.0040b9f0
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 0x401f84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x420a68
jmp 0x402051
push 3
push 0x400
push eax
call dword [sym.imp.WININET.dll_DetectAutoProxyUrl]
test eax, eax
jne 0x401efb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x420ac4
jmp 0x402051
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 0x401faa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x420a28
jmp 0x402051
push eax
push str._n__InternetInitializeAutoProxyDll_returned:__d_n
call fcn.0040b9f0
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 pe_nt_image_headers32
lea eax, [ebp + 0xcac]
push eax
push 0x401
lea eax, [ebp + 0x3a4]
push eax
call esi
test eax, eax
jne 0x401ff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x420998
jmp 0x402051
push dword [ebp - 0x60]
push str._n__Proxy_is:__S_n
call fcn.0040b9f0
mov ecx, dword [ebp - 0x60]
push 0x42b30c
push 0x42b310
push 0x42b308
call fcn.00401ab1
add esp, 0x14
push ebx
push ebx
call dword [ebp - 0x64]
test eax, eax
jne 0x402036
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x420930
jmp 0x402051
push str._n...end_of_test_program__n
call fcn.0040b9f0
pop ecx
xor eax, eax
jmp 0x402061
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x420aec
push str._n__ERROR:__s_failed_with_error_number__d._n
call fcn.0040b9f0
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [ebp + 0xeb0]
pop edi
pop esi
pop ebx
call fcn.00412aab
add ebp, 0xeb4
leave
ret