Function at 0x404f30
Capabilities:
Check if file exists
Connect to http server
Create http request
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41f7f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8f0
mov eax, dword [0x428990]
mov ecx, dword [0x4298d4]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x8ec], eax
mov eax, dword [str.___n]
push esi
mov dword [esp + 0x14], eax
push edi
add eax, 0x1f4
mov dword [esp + 0x1c], ecx
add ecx, 0xa
mov dword [esp + 0x20], eax
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x42df88]
push eax
push ecx
mov dword [ebx + 0x90], 0
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [esp + 0x6e8], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x6e9]
rep stosd dword es:[edi], eax
push 0
push 0
push 0
stosw word es:[edi], ax
push 1
push 0
stosb byte es:[edi], al
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [ebx + 4], eax
mov ecx, ebx
jne 0x404feb
mov edx, dword [ebx]
push 0x423540
push 0xd
call dword [edx + 8]
xor al, al
jmp 0x4056f1
mov eax, dword [ebx]
push 0x423528
push 0xd
call dword [eax + 8]
mov eax, dword [ebx + 0xec]
mov edi, 0x10
cmp eax, edi
jb 0x40500e
mov ecx, dword [ebx + 0xd8]
jmp 0x405014
lea ecx, [ebx + 0xd8]
push 0
push 0
xor eax, eax
mov ax, word [ebx + 0xf0]
push 3
push 0x423387
push 0x423387
push eax
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [ebx + 8], eax
jne 0x40505f
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebx]
push 0x423510
push 0xd
mov ecx, ebx
call dword [eax + 8]
xor al, al
jmp 0x4056f1
push str.updatetmp
call fcn.0040af8a
lea eax, [ebx + 0x9c]
push eax
mov ecx, str.updatetmp_
lea esi, [esp + 0x58]
mov dword [esp + 0x18], eax
call fcn.00406a40
mov ecx, dword [eax + 0x18]
add esp, 8
cmp ecx, edi
jb 0x405091
mov eax, dword [eax + 4]
jmp 0x405094
add eax, 4
push eax
call fcn.0040af8a
mov eax, dword [esp + 0x6c]
add esp, 4
cmp eax, edi
jb 0x4050b2
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041744c
add esp, 4
mov esi, dword [esp + 0x10]
xor eax, eax
mov byte [esp + 0x4e0], 0
mov ecx, 0x81
lea edi, [esp + 0x4e1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [esi + 0x18], 0x10
jb 0x4050dc
mov eax, dword [esi + 4]
jmp 0x4050df
lea eax, [esi + 4]
push eax
lea edx, [esp + 0x4e4]
push str.updatetmp__s_filelist.list
push edx
call fcn.004098f6
add esp, 0xc
push 0xb
xor edi, edi
push str._56yupdate_
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
call fcn.004017f0
push esi
lea eax, [esp + 0x1c]
push eax
lea esi, [esp + 0x58]
mov dword [esp + 0x90c], edi
call fcn.00406ae0
push eax
mov edi, str._filelist.list
lea esi, [esp + 0x40]
mov byte [esp + 0x910], 1
call fcn.00402f00
add esp, 0xc
mov byte [esp + 0x904], 2
mov ecx, dword [eax + 0x18]
mov edi, 0x10
cmp ecx, edi
jb 0x405161
mov eax, dword [eax + 4]
jmp 0x405164
add eax, 4
lea ecx, [esp + 0x4e0]
push ecx
mov ecx, eax
mov esi, ebx
call fcn.00403490
mov ecx, dword [esp + 0x4c]
neg al
sbb al, al
inc al
cmp ecx, edi
mov byte [esp + 0xf], al
jb 0x405198
mov edx, dword [esp + 0x38]
push edx
call fcn.0041744c
mov al, byte [esp + 0x13]
add esp, 4
mov ecx, dword [esp + 0x68]
xor esi, esi
cmp ecx, edi
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], esi
mov byte [esp + 0x38], 0
jb 0x4051c4
mov eax, dword [esp + 0x54]
push eax
call fcn.0041744c
mov al, byte [esp + 0x13]
add esp, 4
mov dword [esp + 0x904], 0xffffffff
cmp dword [esp + 0x30], edi
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], esi
mov byte [esp + 0x54], 0
jb 0x4051f7
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041744c
mov al, byte [esp + 0x13]
add esp, 4
test al, al
je 0x405210
mov edx, dword [ebx]
push 0x42349c
push 0xd
mov ecx, ebx
call dword [edx + 8]
xor al, al
jmp 0x4056f1
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x904], 3
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea eax, [esp + 0x4e0]
push eax
lea ebx, [esp + 0x38]
mov byte [esp + 0x908], 4
call fcn.00405be0
lea ecx, [esp + 0x18]
push ecx
mov edx, ebx
push edx
call fcn.00405720
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
push ecx
call fcn.00405dc0
mov ecx, dword [0x4391e0]
test ecx, ecx
je 0x40527e
mov eax, dword [0x4391e4]
sub eax, ecx
sar eax, 4
test eax, eax
ja 0x4052a8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push 0x423490
push 0xd
call dword [edx + 8]
push 0xd
mov edx, 0xc8
mov eax, 0x190
mov ecx, 0x84
call fcn.00404d00
jmp 0x4056dd
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push 0x42347c
push 0xd
mov ecx, esi
call dword [eax + 8]
xor eax, eax
mov byte [esp + 0x2d0], 0
mov ecx, 0x40
lea edi, [esp + 0x2d1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x1c8], 0
mov ecx, 0x40
lea edi, [esp + 0x1c9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0xc0], 0
mov ecx, 0x40
lea edi, [esp + 0xc1]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4391e0]
test ecx, ecx
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x405318
xor eax, eax
jmp 0x405322
mov eax, dword [0x4391e4]
sub eax, ecx
sar eax, 4
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], 0
mov ebx, dword [0x4391e0]
cmp ebx, dword [0x4391e4]
je 0x40568a
mov eax, dword [ebx + 4]
push eax
lea ecx, [esp + 0xc4]
push 0x423478
push ecx
call fcn.004098f6
mov eax, dword [ebx]
push str.updatetmp
push eax
call fcn.0041426e
add esp, 0x14
test eax, eax
je 0x40567a
lea edx, [esp + 0xc0]
push str.winmm.dll
push edx
call fcn.0041426e
add esp, 8
test eax, eax
je 0x40567a
cmp dword [ebx + 0xc], 1
mov eax, dword [ebx]
push 0x423468
push eax
jne 0x40541a
call fcn.0040a1f7
add esp, 8
test eax, eax
je 0x4053ec
push 0x4233a8
push ebx
call fcn.00402380
add esp, 8
test al, al
jne 0x4053ec
mov ecx, dword [ebx]
lea eax, [esp + 0xc0]
push eax
push ecx
lea edx, [esp + 0x3e0]
push str._s_s
push edx
call fcn.004098f6
add esp, 0x10
lea ecx, [esp + 0x3d8]
call fcn.00403d10
jmp 0x40563d
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x3dc]
push 0x423478
push ecx
call fcn.004098f6
add esp, 0xc
lea ecx, [esp + 0x3d8]
call fcn.00403d10
jmp 0x40563d
call fcn.0040a1f7
add esp, 8
test eax, eax
je 0x4054cb
push 0x4233a8
push ebx
call fcn.00402380
add esp, 8
test al, al
jne 0x4054cb
mov eax, dword [ebx]
lea edx, [esp + 0xc0]
push edx
push eax
lea eax, [esp + 0x1d0]
push str._s_s
push eax
call fcn.004098f6
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, str._56yupdate_
lea esi, [esp + 0x80]
call fcn.00406a40
push eax
mov edi, str._release__s__s
lea esi, [esp + 0x68]
mov byte [esp + 0x91c], 6
call fcn.00402f00
mov edx, dword [eax + 0x18]
mov ecx, dword [ebx]
add esp, 0x18
cmp edx, 0x10
jb 0x40549c
mov eax, dword [eax + 4]
jmp 0x40549f
add eax, 4
lea edx, [esp + 0xc0]
push edx
push ecx
push eax
lea eax, [esp + 0x2dc]
push eax
call fcn.004098f6
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.004012f0
lea ecx, [esp + 0x6c]
jmp 0x405554
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x1cc]
push 0x423478
push edx
call fcn.004098f6
mov eax, dword [esp + 0x1c]
push eax
mov ecx, str._56yupdate_
lea esi, [esp + 0xb4]
call fcn.00406a40
push eax
mov edi, str._release__s
lea esi, [esp + 0x9c]
mov byte [esp + 0x918], 5
call fcn.00402f00
mov ecx, dword [eax + 0x18]
add esp, 0x14
cmp ecx, 0x10
jb 0x405525
mov eax, dword [eax + 4]
jmp 0x405528
add eax, 4
lea ecx, [esp + 0xc0]
push ecx
push eax
lea edx, [esp + 0x2d8]
push edx
call fcn.004098f6
add esp, 0xc
lea ecx, [esp + 0x88]
call fcn.004012f0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x904], 4
call fcn.004012f0
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c8]
push eax
lea ecx, [esp + 0x2d4]
call fcn.00403490
test al, al
jne 0x4055a7
lea ecx, [esp + 0x6e8]
push 0x423414
push ecx
call fcn.004098f6
mov edx, dword [esi]
add esp, 8
lea eax, [esp + 0x6e8]
push eax
push 0xd
mov ecx, esi
call dword [edx + 8]
jmp 0x40567a
lea ecx, [esp + 0x14]
call fcn.004011f0
lea ecx, [esp + 0x1c8]
push ecx
lea edx, [esp + 0x18]
push 0x423478
push edx
mov byte [esp + 0x910], 7
call fcn.004061d0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405609
or ecx, 0xffffffff
lea eax, [esp + 0x1c8]
call fcn.00404eb0
cmp dword [ebx + 8], eax
je 0x405609
lea ecx, [esp + 0x1c8]
push ecx
lea ecx, [esp + 0x2d4]
call fcn.00403490
lea edx, [esp + 0xc0]
push edx
push str.autoupdate.exe
call fcn.0041426e
add esp, 8
test eax, eax
jne 0x405629
mov byte [0x42e839], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x904], 4
call fcn.00401410
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x94]
test ecx, ecx
jle 0x405674
mov eax, dword [esi + 0x98]
inc eax
imul eax, eax, 0x2710
cdq
idiv ecx
mov ecx, dword [str.___n]
push 0xa
mov edx, 0x1f4
mov dword [esi + 0x90], eax
mov eax, dword [0x4298d4]
call fcn.00404d00
inc dword [esi + 0x98]
mov eax, dword [0x4391e4]
add ebx, 0x10
cmp ebx, eax
jne 0x405344
mov eax, dword [esi]
push 0x423490
push 0xd
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [0x4298f0]
mov eax, dword [0x4298ec]
mov edx, dword [0x42df88]
mov dword [esp + 0x70], ecx
add ecx, 0xd
mov dword [esp + 0x78], ecx
push 1
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], eax
push ecx
add eax, 0xc8
push edx
mov dword [esp + 0x80], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [esp + 0x18]
call fcn.004062b0
lea ebx, [esp + 0x34]
call fcn.004062b0
mov al, 1
mov ecx, dword [esp + 0x8fc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8f4]
call fcn.0040b25c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4