Function at 0x10005540
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 0x10029380
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003b030]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x1004130c]
mov edx, dword [eax + 0xc]
xor ebp, ebp
mov ecx, 0x1004130c
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 0x100056f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1004130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1004130c
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.100016d0
mov edi, dword [esp + 0x1c]
add esp, 8
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.10002ea0
push 0x1002cf54
mov byte [esp + 0x50], 2
mov esi, dword [eax]
push 0x10041fd8
lea edx, [ebp + 1]
call fcn.10003c10
cmp esi, ebp
jne 0x10005611
xor eax, eax
jmp 0x1000561f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005616
sub eax, edx
push esi
push 0x10041fd8
mov edx, eax
call fcn.10003c10
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 0x10005651
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 0x10005672
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 0x10005689
push eax
call fcn.100186b3
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 0x100056a4
push ebp
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100056af
push eax
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100056ba
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 0x100056e2
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 0x10005720
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10005701
sub eax, edx
sar eax, 1
je 0x10005720
push ebp
push ebp
push 3
push ebp
push ebp
push 0x1bb
push esi
jmp 0x10005730
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 0x100057e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x1004130c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x1004130c
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.100016d0
mov edi, dword [esp + 0x1c]
add esp, 8
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.10002ea0
push 0x1002cf54
mov byte [esp + 0x50], 4
mov esi, dword [eax]
push 0x10041fd8
mov edx, 1
call fcn.10003c10
cmp esi, ebp
jne 0x100057ac
xor eax, eax
jmp 0x100057ba
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100057b1
sub eax, edx
push esi
push 0x10041fd8
mov edx, eax
call fcn.10003c10
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 0x10005645
mov ecx, dword [esp + 0x58]
push ebp
push 0x4a83000
push ebp
push ebp
push ebp
push ecx
push 0x1002d2bc
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, ebp
jne 0x100058b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x1004130c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x1004130c
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.100016d0
mov edi, dword [esp + 0x1c]
add esp, 8
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.10002ea0
push 0x1002cf54
mov byte [esp + 0x50], 6
mov esi, dword [eax]
push 0x10041fd8
mov edx, 1
call fcn.10003c10
cmp esi, ebp
jne 0x10005877
xor eax, eax
jmp 0x10005889
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005880
sub eax, edx
push esi
push 0x10041fd8
mov edx, eax
call fcn.10003c10
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 0x10005645
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 [0x1004130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x1004130c
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 0x10005936
cmp ebp, eax
je 0x1000593b
call fcn.100193fa
cmp esi, edi
je 0x10005a5f
test ebp, ebp
jne 0x100059fe
call fcn.100193fa
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x1000595c
call fcn.100193fa
mov eax, dword [esi + 0xc]
push str.host
push eax
call fcn.100191a9
add esp, 8
test eax, eax
je 0x100059e5
test ebp, ebp
jne 0x10005a06
call fcn.100193fa
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x1000598a
call fcn.100193fa
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.10003da0
push 1
push 0x1002d33c
lea eax, [esp + 0x1c]
push eax
call fcn.10003da0
test ebp, ebp
jne 0x10005a0e
call fcn.100193fa
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x100059c2
call fcn.100193fa
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.10003da0
push 2
push 0x1002d340
lea eax, [esp + 0x1c]
push eax
call fcn.10003da0
test ebp, ebp
jne 0x100059ee
call fcn.100193fa
cmp byte [esi + 0x15], 0
je 0x10005a13
call fcn.100193fa
jmp 0x10005925
mov eax, dword [ebp]
jmp 0x10005952
mov eax, dword [ebp]
jmp 0x10005980
mov eax, dword [ebp]
jmp 0x100059b8
mov eax, dword [esi + 8]
cmp byte [eax + 0x15], 0
jne 0x10005a3f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
jne 0x10005925
lea ebx, [ebx]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
je 0x10005a30
jmp 0x10005925
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x10005a58
cmp esi, dword [eax + 8]
jne 0x10005a58
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x10005a48
mov esi, eax
jmp 0x10005925
push 6
push str.Host:
lea ecx, [esp + 0x1c]
push ecx
call fcn.10003da0
mov esi, dword [esp + 0x54]
test esi, esi
jne 0x10005a7c
xor eax, eax
jmp 0x10005a90
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005a81
sub eax, edx
sar eax, 1
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.10003da0
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x10005aba
mov eax, esi
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.10001620
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 0x10005bac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x1004130c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x1004130c
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.100016d0
mov edi, dword [esp + 0x30]
add esp, 8
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.10002ea0
push 0x1002cf54
mov byte [esp + 0x50], 9
mov esi, dword [eax]
push 0x10041fd8
mov edx, 1
call fcn.10003c10
test esi, esi
jne 0x10005b39
xor eax, eax
jmp 0x10005b49
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005b40
sub eax, edx
push esi
push 0x10041fd8
mov edx, eax
call fcn.10003c10
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 0x10005b7a
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 0x10005b9b
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 0x10005659
push 0xa000
mov dword [esp + 0x24], 0
call fcn.1001861e
mov edi, eax
add esp, 4
test edi, edi
jne 0x10005c4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x1004130c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x1004130c
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.100016d0
mov edi, dword [esp + 0x30]
add esp, 8
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.10002ea0
push 0x1002cf54
mov byte [esp + 0x50], 0xb
mov esi, dword [eax]
push 0x10041fd8
mov edx, 1
call fcn.10003c10
test esi, esi
jne 0x10005c38
xor eax, eax
jmp 0x10005b49
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005c40
jmp 0x10005b47
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 0x10005cf5
lea esp, [esp]
mov esi, dword [esp + 0x20]
test esi, esi
je 0x10005cf5
xor ebp, ebp
test esi, esi
jne 0x10005c82
test ebp, ebp
je 0x10005cdb
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
test eax, eax
jne 0x10005c9d
push esi
call fcn.10018790
mov ecx, dword [esp + 0x64]
add esp, 4
mov dword [ecx], eax
jmp 0x10005cb2
mov ecx, dword [edx + 8]
add ecx, esi
push ecx
push eax
call fcn.1001885a
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 0x10005cdb
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 8]
push esi
push edi
add edx, eax
push esi
push edx
call fcn.10018a75
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 0x10005c70
push edi
call fcn.10018699
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 0x10005697
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10005697