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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42e426
push eax
mov dword fs:[0], esp
sub esp, 0x10c
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
mov ebp, ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov edi, str.down360test.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, 0x450204
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x42008c
xor edi, edi
jmp 0x420099
push 0x450204
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edi, eax
mov esi, dword [esp + 0x12c]
push edi
mov ecx, esi
call fcn.00417770
test eax, eax
je 0x4200cc
mov edx, dword [esi]
push edi
lea ecx, [edi + 1]
push 0x450204
push ecx
push edx
call fcn.00406c30
mov eax, dword [esi]
add esp, 0x10
mov dword [eax - 8], edi
mov ecx, dword [esi]
mov byte [ecx + edi], 0
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call edi
push 0
lea edx, [esp + 0x1c]
push 0
push edx
push str.http:__update.360safe.com_safe_safeup35.ini
push 0
mov ebx, eax
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x4201c6
call edi
mov edi, eax
sub edi, ebx
jne 0x420100
mov edi, 1
mov eax, dword [0x436cfc]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x12c], 0
call fcn.004202f0
mov ecx, eax
mov ebx, edi
shl ebx, 0xa
lea eax, [ecx + ecx*4]
xor edx, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
div ebx
push eax
push ecx
push edi
lea eax, [esp + 0x1c]
push 0x450190
push eax
call fcn.00417340
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00406e80
mov eax, str._r_n_r_n
test eax, eax
je 0x420180
push str._r_n_r_n
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push str._r_n_r_n
push eax
mov ecx, esi
call fcn.00406e80
mov eax, dword [esp + 0x10]
mov edx, dword [0x436d00]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4201bc
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x4201bc
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0042d5f4
add esp, 4
mov eax, 1
jmp 0x4202c7
mov eax, dword [0x436cfc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x124], 1
call edi
sub eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea ecx, [esp + 0x18]
push 0x450160
push ecx
call fcn.00417340
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, esi
mov edx, dword [eax - 8]
push eax
push edx
call fcn.00406e80
mov eax, str._r_n_r_n
test eax, eax
je 0x420296
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edi, eax
test edi, edi
je 0x420296
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp ecx, 1
jg 0x420264
mov ecx, dword [eax - 8]
mov edx, dword [eax - 4]
lea ebp, [ecx + edi]
cmp ebp, edx
jg 0x420264
push edi
inc edx
push str._r_n_r_n
add ecx, eax
push edx
push ecx
call fcn.00406c30
mov eax, dword [esi]
add esp, 0x10
mov ecx, dword [eax - 8]
add ecx, edi
mov dword [eax - 8], ecx
mov esi, dword [esi]
mov ecx, dword [esi - 8]
mov byte [ecx + esi], 0
jmp 0x420296
mov edx, dword [eax - 8]
push str._r_n_r_n
push edi
push eax
push edx
mov ecx, esi
call fcn.0040e0f0
test eax, eax
je 0x420296
cmp ebx, dword [0x436d00]
je 0x420296
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x420296
push ebx
call fcn.0042d5f4
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x436d00]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4202c5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x4202c5
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0042d5f4
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 4