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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5727c2
mov eax, dword fs:[0]
push eax
sub esp, 0x65c
mov eax, dword [0x5dafd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x62c], esi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00552e70
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00552e70
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00552e70
add esp, 0x24
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push 0
push str.auto_
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [esi + 0xd8]
lea eax, [ebp - 0x628]
push str.http:__utildown.com_request_update_file_info.php
push str._s_file_no_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.urlmon.dll_URLDownloadToFileW]
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop dword [eax]
push 0
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
call ebx
test eax, eax
jns 0x40c8a4
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x40c880
call fcn.0040e23c
mov ecx, eax
test ecx, ecx
je 0x40cbc2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x668], eax
mov dword [ebp - 4], 0
call fcn.0040e23c
mov ecx, eax
test ecx, ecx
je 0x40cbcc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x664], eax
lea ecx, [ebp - 0x668]
mov byte [ebp - 4], 1
call fcn.004083f0
push 0
lea ecx, [ebp - 0x668]
call fcn.00407220
push ecx
mov eax, esp
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x218]
mov dword [eax], ecx
lea ecx, [ebp - 0x668]
call fcn.00407360
push ecx
mov eax, esp
lea ecx, [ebp - 0x668]
mov dword [eax], str.root
call fcn.004075e0
test al, al
je 0x40cb9b
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x40c98a
cmp dword [ebp - 0x64c], 1
jne 0x40c98a
mov ecx, dword [ebp - 0x658]
mov dword [ebp - 0x660], eax
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x65c], ecx
mov dword [ebp - 0x658], 0
setne al
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x64c], eax
push ecx
mov eax, esp
lea ecx, [ebp - 0x668]
mov dword [eax], str.file
call fcn.004075e0
test al, al
je 0x40cb9b
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x40c9f6
cmp dword [ebp - 0x64c], 1
jne 0x40c9f6
mov ecx, dword [ebp - 0x658]
mov dword [ebp - 0x660], eax
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x65c], ecx
mov dword [ebp - 0x658], 0
setne al
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x64c], eax
push ecx
mov eax, esp
lea ecx, [ebp - 0x668]
mov dword [eax], str.screenshot
call fcn.004075e0
or esi, 0xffffffff
test al, al
je 0x40ca68
push dword [ebp - 0x65c]
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x668]
call fcn.00409720
mov byte [ebp - 4], 3
lea eax, [ebp - 0x630]
mov ebx, dword [ebp - 0x62c]
push eax
lea ecx, [ebx + 0xdc]
call fcn.0040aff0
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x630]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ca6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40ca6e
mov ebx, dword [ebp - 0x62c]
push ecx
mov eax, esp
lea ecx, [ebp - 0x668]
mov dword [eax], str.file_url
call fcn.004075e0
test al, al
je 0x40cad5
push dword [ebp - 0x65c]
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x668]
call fcn.00409720
lea eax, [ebp - 0x62c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebx + 0xe0]
call fcn.0040aff0
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x62c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cad5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov eax, esp
lea ecx, [ebp - 0x668]
mov dword [eax], str.origin_name
call fcn.004075e0
test al, al
je 0x40cb3c
push dword [ebp - 0x65c]
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x668]
call fcn.00409720
lea eax, [ebp - 0x62c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebx + 0xe4]
call fcn.0040aff0
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x62c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cb3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov eax, esp
lea ecx, [ebp - 0x668]
mov dword [eax], str.file_size
call fcn.004075e0
test al, al
je 0x40cb9b
push dword [ebp - 0x65c]
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x668]
call fcn.00409720
push dword [ebp - 0x62c]
call fcn.0055ac6d
mov edx, dword [ebp - 0x62c]
add esp, 4
mov dword [ebx + 0xe8], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40cb9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x668]
call fcn.00407150
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055065c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401ca0
push 0x80004005
call fcn.00401ca0
int3