Function at 0xb2e1d0
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x140c
push 0
push 0
dec ecx
jne 0xb2e1d9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0xa018], ecx
mov dword [ebp - 0xa014], edx
mov dword [ebp - 0xa010], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xa014]
call fcn.00a15270
xor eax, eax
push ebp
push 0xb2ebe6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa019], 0
mov eax, dword [ebp - 0xa010]
add eax, 0x38
call fcn.00a14db0
mov eax, dword [ebp - 0xa010]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0xa010]
add eax, 0x34
call fcn.00a14db0
mov eax, dword [ebp - 0xa010]
add eax, 8
push eax
mov eax, dword [ebp - 0xa010]
add eax, 0xc
push eax
mov eax, dword [ebp - 0xa010]
lea ecx, [eax + 4]
lea edx, [ebp - 0xa039]
mov eax, dword [ebp - 0xa014]
call fcn.00b2daac
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 8]
mov eax, 0xb2ec04
call fcn.00a153c4
mov esi, eax
test esi, esi
jne 0xb2e29f
lea eax, [ebp - 0xa02c]
mov edx, dword [ebp - 0xa010]
mov edx, dword [edx + 8]
call fcn.00a14e48
jmp 0xb2e2d9
lea eax, [ebp - 0xa02c]
push eax
mov ecx, esi
dec ecx
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 8]
mov edx, 1
call fcn.00a152e0
lea eax, [ebp - 0xa030]
push eax
lea edx, [esi + 1]
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 8]
mov ecx, 0x7fffffff
call fcn.00a152e0
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x1c], 0
je 0xb2e306
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x1c]
call fcn.00a15280
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
jmp 0xb2e318
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0xb2eb9c
push 0xb2de7c
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetStatusCallback
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x2c], 0
je 0xb2e3af
push 4
mov eax, dword [ebp - 0xa010]
add eax, 0x2c
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 0xa010]
add eax, 0x2c
push eax
push 6
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 0xa010]
add eax, 0x2c
push eax
push 8
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 0xa010]
add eax, 0x2c
push eax
push 5
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 0xa010]
add eax, 0x2c
push eax
push 7
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 3
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x14]
call fcn.00a15280
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x10]
call fcn.00a15280
push eax
mov eax, dword [ebp - 0xa010]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 4]
call fcn.00a15280
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0xb2e40b
push ebp
call fcn.00b2e124
pop ecx
jmp 0xb2eb9c
mov byte [ebp - 0xa019], 1
test bl, bl
je 0xb2e423
mov eax, 0xb2ec08
mov dword [ebp - 0xa020], eax
jmp 0xb2e42e
mov eax, 0xb2ec0c
mov dword [ebp - 0xa020], eax
xor esi, esi
mov eax, dword [ebp - 0xa010]
cmp byte [eax + 0xe], 0
jne 0xb2e441
mov esi, 0x80000000
mov eax, dword [ebp - 0xa010]
cmp byte [eax + 0x30], 0
jne 0xb2e453
or esi, 0x80000
cmp byte [ebp - 0xa039], 0
je 0xb2e474
or esi, 0x80000
or esi, 0x800000
or esi, 0x1000
or esi, 0x2000
push 2
lea eax, [ebp - 0xa024]
mov ecx, 1
mov edx, dword [0xb2e104]
call fcn.00a16324
add esp, 4
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x18]
call fcn.00a15280
mov edx, dword [ebp - 0xa024]
mov dword [edx], eax
mov eax, dword [ebp - 0xa024]
xor edx, edx
mov dword [eax + 4], edx
test bl, bl
je 0xb2e52f
mov eax, dword [ebp - 0xa010]
push eax
push esi
mov eax, dword [ebp - 0xa024]
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x20]
call fcn.00a15280
push eax
push 0xb2ec14
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 8]
call fcn.00a15280
push eax
mov eax, dword [ebp - 0xa020]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0xb2e50b
push ebp
call fcn.00b2e124
pop ecx
jmp 0xb2eb9c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xa010]
call fcn.00b2dea0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpSendRequestA
jmp 0xb2e5cb
mov eax, dword [ebp - 0xa010]
push eax
push esi
mov eax, dword [ebp - 0xa024]
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x20]
call fcn.00a15280
push eax
push 0xb2ec14
mov eax, dword [ebp - 0xa02c]
call fcn.00a15280
push eax
mov eax, dword [ebp - 0xa020]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0xb2e583
push ebp
call fcn.00b2e124
pop ecx
jmp 0xb2eb9c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xa010]
call fcn.00b2dea0
push 0xa0000000
push 0x2f
push 0xb2ec20
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 0xa030]
call fcn.00a15080
push eax
mov eax, dword [ebp - 0xa030]
call fcn.00a15280
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpSendRequestA
mov byte [ebp - 0xa019], 2
push ebp
mov eax, 0x13
call fcn.00b2e168
pop ecx
test al, al
jne 0xb2e5ee
push ebp
call fcn.00b2e124
pop ecx
jmp 0xb2eb9c
lea edx, [ebp - 0xa044]
lea eax, [ebp - 0xa00c]
call fcn.00a1ac20
mov eax, dword [ebp - 0xa044]
xor edx, edx
call fcn.00a19d90
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x4c]
cmp eax, 0xc8
je 0xb2e638
cmp eax, 0xce
je 0xb2e638
push ebp
call fcn.00b2e124
pop ecx
jmp 0xb2eb9c
mov byte [ebp - 0xa019], 3
cmp byte [ebp + 8], 0
je 0xb2e651
push ebp
call fcn.00b2e124
pop ecx
jmp 0xb2eb9c
push ebp
mov eax, 0xb
call fcn.00b2e168
pop ecx
test al, al
je 0xb2e675
mov eax, dword [ebp - 0xa010]
add eax, 0x40
lea edx, [ebp - 0xa00c]
call fcn.00a14fb8
mov eax, dword [ebp - 0xa010]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0xa010]
xor edx, edx
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 0xa010]
xor edx, edx
mov dword [eax + 0x48], edx
push ebp
mov eax, 0x35
call fcn.00b2e168
pop ecx
test al, al
je 0xb2e7c1
lea eax, [ebp - 0xa048]
lea edx, [ebp - 0xa00c]
call fcn.00a14fb8
mov eax, dword [ebp - 0xa048]
lea edx, [ebp - 0xa028]
call fcn.00a19754
mov edx, dword [ebp - 0xa028]
mov eax, 0xb2ec58
call fcn.00a153c4
dec eax
jne 0xb2e788
lea eax, [ebp - 0xa028]
push eax
mov ecx, 0x7fffffff
mov edx, 7
mov eax, dword [ebp - 0xa028]
call fcn.00a152e0
mov edx, dword [ebp - 0xa028]
mov eax, 0xb2ec68
call fcn.00a153c4
mov esi, eax
test esi, esi
jle 0xb2e742
lea eax, [ebp - 0xa04c]
push eax
mov ecx, esi
dec ecx
xor edx, edx
mov eax, dword [ebp - 0xa028]
call fcn.00a152e0
mov eax, dword [ebp - 0xa04c]
xor edx, edx
call fcn.00a19d90
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x48], eax
mov edx, dword [ebp - 0xa028]
mov eax, 0xb2ec74
call fcn.00a153c4
mov esi, eax
test esi, esi
jle 0xb2e788
lea eax, [ebp - 0xa050]
push eax
lea edx, [esi + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0xa028]
call fcn.00a152e0
mov eax, dword [ebp - 0xa050]
xor edx, edx
call fcn.00a19d90
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x3c], eax
push ebp
mov eax, 5
call fcn.00b2e168
pop ecx
test al, al
je 0xb2e803
lea edx, [ebp - 0xa054]
lea eax, [ebp - 0xa00c]
call fcn.00a1ac20
mov eax, dword [ebp - 0xa054]
xor edx, edx
call fcn.00a19d90
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x44], eax
jmp 0xb2e803
push ebp
mov eax, 5
call fcn.00b2e168
pop ecx
test al, al
je 0xb2e803
lea edx, [ebp - 0xa058]
lea eax, [ebp - 0xa00c]
call fcn.00a1ac20
mov eax, dword [ebp - 0xa058]
xor edx, edx
call fcn.00a19d90
mov ebx, eax
mov eax, dword [ebp - 0xa010]
mov dword [eax + 0x3c], ebx
mov eax, dword [ebp - 0xa010]
mov dword [eax + 0x44], ebx
push ebp
mov eax, 1
call fcn.00b2e168
pop ecx
test al, al
je 0xb2e8bf
lea edx, [ebp - 0xa060]
lea eax, [ebp - 0xa00c]
call fcn.00a1ac20
mov eax, dword [ebp - 0xa060]
lea edx, [ebp - 0xa05c]
call fcn.00a19754
mov edx, dword [ebp - 0xa05c]
mov eax, dword [ebp - 0xa010]
add eax, 0x38
call fcn.00a14e04
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x38]
mov eax, 0xb2ec80
call fcn.00a153c4
mov esi, eax
test esi, esi
je 0xb2e8bf
mov eax, dword [ebp - 0xa010]
add eax, 0x38
push eax
lea edx, [esi + 8]
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x38]
mov ecx, 0x7fffffff
call fcn.00a152e0
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x38]
mov eax, 0xb2ec94
call fcn.00a153c4
mov esi, eax
test esi, esi
jle 0xb2e8bf
mov eax, dword [ebp - 0xa010]
add eax, 0x38
push eax
mov ecx, esi
dec ecx
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x38]
mov edx, 1
call fcn.00a152e0
mov eax, dword [ebp - 0xa010]
cmp byte [eax + 0x58], 0
je 0xb2eaa3
mov eax, dword [ebp - 0xa018]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x48]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0xb2e8ef
cmp eax, dword [esp]
pop edx
pop eax
je 0xb2e8ff
push ebp
call fcn.00b2e124
pop ecx
jmp 0xb2eb9c
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x48], 0
jbe 0xb2e9c0
mov dl, 1
mov eax, dword [0xa2992c]
call fcn.00a13f14
mov dword [ebp - 0xa040], eax
xor eax, eax
push ebp
push 0xb2e9b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x64]
call fcn.00a1a248
test al, al
je 0xb2e955
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 0xa040]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0xa040]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0xb2e98f
lea ecx, [ebp - 0xa064]
xor edx, edx
mov eax, dword [ebp - 0xa040]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xa064]
mov edx, dword [ebp - 0xa010]
mov edx, dword [edx + 0x40]
call fcn.00a19848
test al, al
jne 0xb2e9a0
push ebp
call fcn.00b2e124
pop ecx
call fcn.00a147d0
jmp 0xb2eb9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb2e9c0
mov eax, dword [ebp - 0xa040]
call fcn.00a13f44
ret
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x48], 0
jne 0xb2eaa3
mov dl, 1
mov eax, dword [0xa2992c]
call fcn.00a13f14
mov dword [ebp - 0xa040], eax
xor eax, eax
push ebp
push 0xb2ea9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x64]
call fcn.00a1a248
test al, al
je 0xb2ea16
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 0xa040]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0xa040]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0xb2ea50
lea ecx, [ebp - 0xa068]
xor edx, edx
mov eax, dword [ebp - 0xa040]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xa068]
mov edx, dword [ebp - 0xa010]
mov edx, dword [edx + 0x40]
call fcn.00a19848
test al, al
jne 0xb2ea83
mov eax, dword [ebp - 0xa040]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0xa040]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 0xa040]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb2eaa3
mov eax, dword [ebp - 0xa040]
call fcn.00a13f44
ret
mov eax, dword [ebp - 0xa010]
cmp word [eax + 0x6a], 0
je 0xb2eadd
mov eax, dword [ebp - 0xa018]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x3c]
push eax
mov ebx, dword [ebp - 0xa010]
mov ecx, dword [ebp - 0xa014]
mov edx, dword [ebp - 0xa010]
mov eax, dword [ebx + 0x6c]
call dword [ebx + 0x68]
mov byte [ebp - 0xa031], 0
mov dword [ebp - 0xa038], 0xa000
lea eax, [ebp - 0xa038]
push eax
push 0xa000
lea eax, [ebp - 0xa00c]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0xb2eb7c
cmp dword [ebp - 0xa038], 0
je 0xb2eb7c
lea edx, [ebp - 0xa00c]
mov ecx, dword [ebp - 0xa038]
mov eax, dword [ebp - 0xa018]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0xa010]
cmp word [eax + 0x72], 0
je 0xb2eb6f
mov eax, dword [ebp - 0xa018]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x3c]
push eax
lea eax, [ebp - 0xa031]
push eax
mov ebx, dword [ebp - 0xa010]
mov ecx, dword [ebp - 0xa014]
mov edx, dword [ebp - 0xa010]
mov eax, dword [ebx + 0x74]
call dword [ebx + 0x70]
cmp byte [ebp - 0xa031], 0
je 0xb2eae4
cmp byte [ebp - 0xa031], 0
je 0xb2eb8e
mov byte [ebp - 0xa019], 4
jmp 0xb2eb95
mov byte [ebp - 0xa019], 5
push ebp
call fcn.00b2e124
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb2ebed
lea eax, [ebp - 0xa068]
mov edx, 0xa
call fcn.00a14dd4
lea eax, [ebp - 0xa030]
mov edx, 3
call fcn.00a14dd4
lea eax, [ebp - 0xa024]
mov edx, dword [0xb2e104]
call fcn.00a16430
lea eax, [ebp - 0xa014]
call fcn.00a14db0
ret