Function at 0x401180
Capabilities:
Check http status code
Connect to http server
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x45559c
mov eax, dword fs:[0]
push eax
mov eax, 0x42a8
call fcn.00441c60
mov eax, dword [0x46bd84]
xor eax, esp
mov dword [esp + 0x42a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46bd84]
xor eax, esp
push eax
lea eax, [esp + 0x42bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x42cc]
mov esi, ecx
mov dword [esp + 0x18], eax
lea eax, [esi + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
xor ebx, ebx
cmp eax, ebx
jne 0x4014fc
push 0x38
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.0043f900
push 0x1fe
lea eax, [esp + 0x82]
xor edx, edx
push ebx
push eax
mov word [esp + 0x88], dx
call fcn.0043f900
push 0xffe
lea edx, [esp + 0x28e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x294], cx
call fcn.0043f900
push 0x1046
lea ecx, [esp + 0x129a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x12a0], ax
call fcn.0043f900
add esp, 0x30
lea edx, [esp + 0x70]
mov dword [esp + 0x44], edx
lea eax, [esp + 0x270]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1274]
mov dword [esp + 0x38], 0x3c
mov dword [esp + 0x4c], 0x100
mov dword [esp + 0x68], 0x800
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], 0x824
mov ecx, dword [eax - 0xc]
push 0x90000000
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4012ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4014fc
mov eax, dword [esp + 0x4c]
mov edx, dword [esi + 0x14]
push ebx
push ebx
push 3
push ebx
push ebx
push eax
lea ecx, [esp + 0x88]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x4012a0
mov ebp, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
add esi, 0xc
push esi
push 2
push eax
call ebp
lea eax, [esp + 0x1270]
push eax
lea ecx, [esp + 0x30]
call fcn.00401ea0
mov edi, eax
lea ecx, [esp + 0x270]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x42c8], ebx
call fcn.00401ea0
push edi
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x42d0], 1
call fcn.00401540
add esp, 0xc
mov byte [esp + 0x42c4], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40134b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x42c4], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401373
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ecx
push ebx
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
cmp edi, ebx
je 0x401526
push 4
push esi
push 5
push edi
call ebp
push 4
push esi
push 6
push edi
call ebp
mov ebp, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
push edi
cmp ebp, ebx
je 0x4014a1
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4014ab
mov eax, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x28]
push edx
push eax
push 0x20000013
push edi
mov dword [esp + 0x38], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4014b7
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp eax, 0xc8
je 0x401405
cmp eax, 0xc9
jne 0x4014b7
push 0x1fff
lea edx, [esp + 0x22bd]
push ebx
push edx
mov byte [esp + 0x22c4], bl
call fcn.0043f900
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
jmp 0x401430
mov dword [esp + 0x18], ebx
mov ecx, 0x2000
lea eax, [esp + 0x22b8]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x401440
lea eax, [esp + 0x18]
push eax
push 0x2000
lea ecx, [esp + 0x22c0]
push ecx
push edi
call esi
cmp eax, ebx
je 0x4014b7
cmp dword [esp + 0x18], ebx
je 0x4014b7
lea edx, [esp + 0x22b8]
push edx
lea ecx, [esp + 0x34]
call fcn.00401840
mov byte [esp + 0x42c4], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebp
call fcn.00401630
lea ecx, [esp + 0x30]
mov byte [esp + 0x42c4], 4
call fcn.00402040
jmp 0x401430
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x4014b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
mov dword [esp + 0x42c4], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4014fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x42bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42a4]
xor ecx, esp
call fcn.0043d85c
add esp, 0x42b4
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
mov dword [edx], eax
jmp 0x4014be