Function at 0x4056a0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request
Send http request with host header

Disassembly:
push 0xffffffffffffffff
push 0x4299e0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b14c]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
xor ebp, ebp
mov ecx, 0x44130c
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebp
call edx
add eax, 0x10
mov dword [esp + 0x40], eax
push ebp
push ebp
push ebp
push 1
push ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x4c], ebp
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [esp + 0x3c], edi
cmp edi, ebp
jne 0x405858
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
push str.hqd0__d
lea edi, [esp + 0x1c]
mov byte [esp + 0x54], 1
call fcn.004016f0
mov edi, dword [esp + 0x1c]
add esp, 8
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.00403020
push 0x42cf84
mov byte [esp + 0x50], 2
mov esi, dword [eax]
push 0x4420d8
lea edx, [ebp + 1]
call fcn.00403d60
cmp esi, ebp
jne 0x405771
xor eax, eax
jmp 0x40577f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405776
sub eax, edx
push esi
push 0x4420d8
mov edx, eax
call fcn.00403d60
mov byte [esp + 0x4c], 1
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 0x4057b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 0
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x60]
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
je 0x4057e9
push eax
call fcn.00419063
add esp, 4
mov dword [esi], edi
mov ebp, dword [esp + 0x18]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov edi, dword [esp + 0x38]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebp, ebp
je 0x405804
push ebp
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40580f
push eax
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40581a
push eax
call esi
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405842
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
cmp esi, ebp
je 0x405880
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405861
sub eax, edx
sar eax, 1
je 0x405880
push ebp
push ebp
push 3
push ebp
push ebp
push 0x1bb
push esi
jmp 0x405890
mov ecx, dword [esp + 0x54]
push ebp
push ebp
push 3
push ebp
push ebp
push 0x1bb
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esp + 0x24], eax
cmp eax, ebp
jne 0x405945
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x44130c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
push str.hqd1__d
lea edi, [esp + 0x1c]
mov byte [esp + 0x54], 3
call fcn.004016f0
mov edi, dword [esp + 0x1c]
add esp, 8
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00403020
push 0x42cf84
mov byte [esp + 0x50], 4
mov esi, dword [eax]
push 0x4420d8
mov edx, 1
call fcn.00403d60
cmp esi, ebp
jne 0x40590c
xor eax, eax
jmp 0x40591a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405911
sub eax, edx
push esi
push 0x4420d8
mov edx, eax
call fcn.00403d60
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4057a5
mov ecx, dword [esp + 0x58]
push ebp
push 0x4a83000
push ebp
push ebp
push ebp
push ecx
push 0x42d2ec
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, ebp
jne 0x405a13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x44130c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
mov bl, 5
push str.hqd2__d
lea edi, [esp + 0x1c]
mov byte [esp + 0x54], bl
call fcn.004016f0
mov edi, dword [esp + 0x1c]
add esp, 8
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00403020
push 0x42cf84
mov byte [esp + 0x50], 6
mov esi, dword [eax]
push 0x4420d8
mov edx, 1
call fcn.00403d60
cmp esi, ebp
jne 0x4059d7
xor eax, eax
jmp 0x4059e9
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4059e0
sub eax, edx
push esi
push 0x4420d8
mov edx, eax
call fcn.00403d60
mov byte [esp + 0x4c], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4057a5
push 4
lea ecx, [esp + 0x30]
push ecx
push 0x41
push ebx
mov dword [esp + 0x3c], 1
call dword [sym.imp.WININET.dll_InternetSetOptionA]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
push 0x1f
push ebx
mov dword [esp + 0x40], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [esp + 0x1c], 0x3380
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x5c]
mov byte [esp + 0x4c], 7
mov eax, dword [ecx + 0x18]
mov esi, dword [eax]
mov ebp, dword [ecx]
mov eax, dword [esp + 0x5c]
mov edi, dword [eax + 0x18]
mov eax, dword [eax]
test ebp, ebp
je 0x405a96
cmp ebp, eax
je 0x405a9b
call fcn.00419e01
cmp esi, edi
je 0x405bbf
test ebp, ebp
jne 0x405b5e
call fcn.00419e01
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x405abc
call fcn.00419e01
mov eax, dword [esi + 0xc]
push str.host
push eax
call fcn.00419bb0
add esp, 8
test eax, eax
je 0x405b45
test ebp, ebp
jne 0x405b66
call fcn.00419e01
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x405aea
call fcn.00419e01
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00403ef0
push 1
push 0x42d3d8
lea eax, [esp + 0x1c]
push eax
call fcn.00403ef0
test ebp, ebp
jne 0x405b6e
call fcn.00419e01
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x405b22
call fcn.00419e01
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00403ef0
push 2
push 0x42d3dc
lea eax, [esp + 0x1c]
push eax
call fcn.00403ef0
test ebp, ebp
jne 0x405b4e
call fcn.00419e01
cmp byte [esi + 0x15], 0
je 0x405b73
call fcn.00419e01
jmp 0x405a85
mov eax, dword [ebp]
jmp 0x405ab2
mov eax, dword [ebp]
jmp 0x405ae0
mov eax, dword [ebp]
jmp 0x405b18
mov eax, dword [esi + 8]
cmp byte [eax + 0x15], 0
jne 0x405b9f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
jne 0x405a85
lea ebx, [ebx]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
je 0x405b90
jmp 0x405a85
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x405bb8
cmp esi, dword [eax + 8]
jne 0x405bb8
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x405ba8
mov esi, eax
jmp 0x405a85
push 6
push str.Host:
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403ef0
mov esi, dword [esp + 0x54]
test esi, esi
jne 0x405bdc
xor eax, eax
jmp 0x405bf0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405be1
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.00403ef0
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x405c1a
mov eax, esi
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00401640
mov eax, dword [esp + 0x14]
push 0
push 0
push esi
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x405d0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x44130c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push esi
mov bl, 8
push str.hqd3__d
lea edi, [esp + 0x30]
mov byte [esp + 0x54], bl
call fcn.004016f0
mov edi, dword [esp + 0x30]
add esp, 8
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.00403020
push 0x42cf84
mov byte [esp + 0x50], 9
mov esi, dword [eax]
push 0x4420d8
mov edx, 1
call fcn.00403d60
test esi, esi
jne 0x405c99
xor eax, eax
jmp 0x405ca9
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ca0
sub eax, edx
push esi
push 0x4420d8
mov edx, eax
call fcn.00403d60
mov byte [esp + 0x4c], bl
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405cda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x4c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x4057b9
push 0xa000
mov dword [esp + 0x24], 0
call fcn.00418e1e
mov edi, eax
add esp, 4
test edi, edi
jne 0x405dac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x44130c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push esi
mov bl, 0xa
push str.hqd4__d
lea edi, [esp + 0x30]
mov byte [esp + 0x54], bl
call fcn.004016f0
mov edi, dword [esp + 0x30]
add esp, 8
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.00403020
push 0x42cf84
mov byte [esp + 0x50], 0xb
mov esi, dword [eax]
push 0x4420d8
mov edx, 1
call fcn.00403d60
test esi, esi
jne 0x405d98
xor eax, eax
jmp 0x405ca9
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405da0
jmp 0x405ca7
mov ebp, dword [esp + 0x18]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x20]
push ecx
push 0xa000
push edi
push ebp
call ebx
test eax, eax
je 0x405e55
lea esp, [esp]
mov esi, dword [esp + 0x20]
test esi, esi
je 0x405e55
xor ebp, ebp
test esi, esi
jne 0x405de2
test ebp, ebp
je 0x405e3b
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
test eax, eax
jne 0x405dfd
push esi
call fcn.00419140
mov ecx, dword [esp + 0x64]
add esp, 4
mov dword [ecx], eax
jmp 0x405e12
mov ecx, dword [edx + 8]
add ecx, esi
push ecx
push eax
call fcn.0041920a
mov edx, dword [esp + 0x68]
add esp, 8
mov dword [edx], eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
test eax, eax
je 0x405e3b
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 8]
push esi
push edi
add edx, eax
push esi
push edx
call fcn.00419425
mov eax, dword [esp + 0x70]
add esp, 0x10
add dword [eax + 8], esi
adc dword [eax + 0xc], ebp
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push 0xa000
push edi
push ebp
call ebx
test eax, eax
jne 0x405dd0
push edi
call fcn.00419049
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov edi, 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4057f7