Function at 0x413910
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471c10
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x48d000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x24], edi
push edi
push edi
push edi
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x24], esi
push edi
cmp esi, edi
jne 0x4139a3
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp + 8]
push esi
mov ecx, 0x47eac4
call fcn.00401f70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41398f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push 0x4000000
push edi
push edi
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
push edi
cmp ebx, edi
jne 0x4139f4
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
mov esi, dword [ebp + 8]
push esi
mov ecx, 0x47eac4
call fcn.00401f70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x413983
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x20000013
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [ebp - 0x18], 0xc8
je 0x413a2c
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
push esi
call edi
jmp 0x41395b
push 0x400
call fcn.0041d281
mov edi, eax
add esp, 4
test edi, edi
jne 0x413a50
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
push esi
call edi
jmp 0x41395b
push 1
mov dword [ebp - 0x10], 0
call fcn.00456a28
mov edx, dword [section..data]
mov esi, eax
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, section..data
mov ebx, 1
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push 0x400
push edi
push edx
mov byte [ebp - 4], bl
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x413adb
lea esp, [esp]
add eax, ebx
push eax
push esi
call fcn.00456abc
mov ecx, dword [ebp - 0x10]
push ecx
mov esi, eax
lea edx, [ebx + esi - 1]
push edi
push edx
call fcn.00457190
mov ecx, dword [ebp - 0x14]
add ebx, dword [ebp - 0x10]
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
push 0x400
push edi
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x413aa0
push edi
mov byte [ebx + esi - 1], 0
call fcn.00454f3d
add esp, 4
mov ebx, esi
lea eax, [ebp - 0x1c]
call fcn.00413d10
push esi
call fcn.00456976
mov edx, dword [ebp - 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push edx
call esi
mov eax, dword [ebp - 0x24]
push eax
call esi
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
mov eax, esi
call fcn.00401a40
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b40
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret