Function at 0x4037e0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x100c
call fcn.00404380
mov eax, dword [0x40d14c]
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push 0
push 0x411030
mov dword [esp + 0x24], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x40394a
mov ecx, dword [esp + 0x1024]
push 0
push 0
push 0
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
je 0x403943
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x20]
push 0xfff
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x403938
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403938
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x40390d
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x40390d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
jg 0x4038d9
mov ecx, dword [eax - 8]
mov edx, dword [eax - 4]
lea ebp, [ecx + esi]
cmp ebp, edx
jg 0x4038d9
lea edi, [esp + 0x1c]
push esi
inc edx
push edi
add ecx, eax
push edx
push ecx
call fcn.004024a0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [eax - 8]
add ecx, esi
mov dword [eax - 8], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
mov byte [ecx + eax], 0
jmp 0x40390d
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push esi
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00403a10
test eax, eax
je 0x40390d
cmp edi, dword [0x40d150]
je 0x40390d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40390d
push edi
call fcn.004043af
add esp, 4
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 0xfff
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403868
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1020]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x40396a
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4039c9
mov ecx, dword [0x40d14c]
mov esi, eax
test eax, eax
mov dword [ebx], ecx
jne 0x40397c
xor ebp, ebp
jmp 0x403985
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x403992
cmp ebp, dword [eax - 4]
jle 0x4039a5
mov ecx, ebx
call fcn.004035d0
push ebp
mov ecx, ebx
call fcn.00403470
test eax, eax
je 0x4039c9
lea edx, [ebp + 1]
cmp edx, ebp
jb 0x4039be
mov edi, dword [ebx]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov byte [edx + ebp], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x40d150]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4039f8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4039f8
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004043af
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x100c
ret