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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x449260]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0
push 0
push 0
push 1
push str.DMHTTP
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x218], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
test eax, eax
je 0x412b81
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412910
push 0x3c
sub eax, edx
sar eax, 1
lea edi, [esi + 0x10]
push 0
push edi
mov dword [ebp - 0x21c], eax
call fcn.00427c90
mov ecx, dword [ebp - 0x21c]
add esp, 0xc
push edi
push 0
mov eax, 1
push ecx
push ebx
mov dword [edi], 0x3c
mov dword [esi + 0x24], eax
mov dword [esi + 0x40], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x412b81
call fcn.00412c00
test eax, eax
je 0x412b81
xor eax, eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x250], 0x28
call fcn.00412ba0
test eax, eax
je 0x412b44
mov edi, dword [ebp + 8]
test edi, edi
jle 0x412a1a
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jle 0x412a1a
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.00427c90
lea ecx, [edi + ebx]
push ecx
push edi
push str.Range:_bytes_d__d_r_n
lea edx, [ebp - 0x214]
push 0x104
push edx
call fcn.004229c8
mov ecx, dword [esi + 0xc]
add esp, 0x20
push 0x10000000
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov eax, dword [esi + 0xc]
push 1
push 8
push 0
lea edx, [ebp - 0x250]
push edx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x412b44
mov ecx, dword [esi + 0xc]
push 0
push 0
push 0
push ecx
call dword [sym.imp.WININET.dll_HttpEndRequestW]
mov ecx, dword [esi + 0xc]
push 0
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0x20000013
push ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [ebp - 0x21c]
cmp eax, 0xc8
je 0x412a94
cmp eax, 0xce
jne 0x412b44
push 0x400
call fcn.0042001a
add esp, 4
lea edx, [ebp - 0x220]
push edx
mov ebx, eax
mov eax, dword [esi + 0xc]
push 0x400
push ebx
xor edi, edi
push eax
mov dword [ebp - 0x220], edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x412b21
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x412b21
mov edx, dword [ebp - 0x218]
add edi, eax
lea ecx, [edi + 1]
push ecx
push edx
call fcn.00421701
add esp, 8
mov dword [ebp - 0x218], eax
test eax, eax
je 0x412b06
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, edi
sub edx, ecx
add edx, eax
push ebx
push edx
call fcn.00422f10
add esp, 0xc
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x220]
push eax
push 0x400
push ebx
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x412ac6
mov eax, dword [ebp - 0x228]
mov edx, dword [ebp - 0x218]
mov byte [edi + edx], 0
test eax, eax
je 0x412b37
mov dword [eax], edi
test ebx, ebx
je 0x412b44
push ebx
call fcn.00420fa6
add esp, 4
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x412b54
push eax
call edi
mov eax, dword [esi + 8]
test eax, eax
je 0x412b5e
push eax
call edi
mov esi, dword [esi + 4]
test esi, esi
je 0x412b68
push esi
call edi
mov eax, dword [ebp - 0x218]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00420fb1
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00420fb1
mov esp, ebp
pop ebp
ret 0xc