Function at 0x403900
Capabilities:
Check internet connectivity via wininet
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHLWAPI.dll_PathIsURLA]
test eax, eax
jne 0x403951
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
test edi, edi
lea ecx, [esi + 0x10]
jne 0x40395f
xor eax, eax
jmp 0x403971
mov eax, edi
lea edx, [eax + 1]
mov dword [ebp + 0xc], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403967
sub eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004018e0
test ebx, ebx
jne 0x403980
xor eax, eax
jmp 0x40398e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403985
sub eax, edx
push eax
push ebx
lea ecx, [esi + 0x24]
call fcn.004018e0
test edi, edi
lea ebx, [esi + 0x20]
jne 0x4039a3
xor eax, eax
jmp 0x4039b1
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4039a8
sub eax, edx
push eax
push edi
mov ecx, ebx
call fcn.004018e0
push 4
push str..df_
mov ecx, ebx
call fcn.00401d40
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0041c874
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push str.Update_Download
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00402650
push edi
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
cmp eax, ebx
jne 0x403a15
xor ecx, ecx
jmp 0x403a29
mov ecx, eax
lea edi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403a20
sub ecx, edi
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401d40
push ebx
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
and cl, 4
sub cl, 4
neg cl
push ebx
push ebx
push ebx
sbb ecx, ecx
and ecx, 4
push ecx
push 1
push edx
lea ecx, [ebp - 0x3c]
call fcn.00425bfa
mov eax, dword [esi + 0x24]
lea ecx, [ebp + 0xa]
push ecx
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x18]
push edx
push eax
mov byte [ebp - 4], 3
call fcn.00426287
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x403a9b
push ebx
mov dword [ebp + 0xc], eax
push 4
lea eax, [ebp + 0xc]
push eax
push 8
lea ecx, [ebp - 0x3c]
call fcn.0042568e
cmp word [esi + 0xc], bx
jne 0x403ab9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040e0b8
add esp, 4
call fcn.0040e0c5
mov word [esi + 0xc], ax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
movzx edi, word [esi + 0xc]
je 0x403ad2
mov ecx, dword [esi + 0x18]
push edi
push 1
push ecx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x403ae7
mov edx, dword [esi + 0x18]
push edi
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov eax, dword [ebp - 0x18]
cmp eax, 3
mov byte [ebp - 4], 4
jne 0x403b03
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.00402700
mov dword [ebp - 0x14], eax
jmp 0x403b7e
cmp eax, 1
jne 0x403b18
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, esi
call fcn.00402dc0
mov dword [ebp - 0x14], eax
jmp 0x403b7e
cmp eax, 0x1001
jne 0x403b7e
mov eax, dword [esi + 0x24]
push 3
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsA]
test eax, eax
je 0x403b7e
mov ecx, esi
call fcn.00403430
mov dword [ebp - 0x14], eax
jmp 0x403b7e
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 3
call fcn.00426315
cmp dword [ebp - 0x14], ebx
mov word [esi + 0xc], bx
je 0x403bc8
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
push eax
push ecx
call edi
test eax, eax
jne 0x403bd2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0x20]
push 1
push eax
push esi
call edi
mov dword [ebp - 0x14], eax
jmp 0x403bd2
mov esi, dword [esi + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00426480
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403bff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8