Function at 0x51dc60
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 0x51dc69
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.00405270
xor eax, eax
push ebp
push 0x51e676
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa019], 0
mov eax, dword [ebp - 0xa010]
add eax, 0x38
call fcn.00404db0
mov eax, dword [ebp - 0xa010]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0xa010]
add eax, 0x34
call fcn.00404db0
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.0051d53c
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 8]
mov eax, 0x51e694
call fcn.004053c4
mov esi, eax
test esi, esi
jne 0x51dd2f
lea eax, [ebp - 0xa02c]
mov edx, dword [ebp - 0xa010]
mov edx, dword [edx + 8]
call fcn.00404e48
jmp 0x51dd69
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.004052e0
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.004052e0
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x1c], 0
je 0x51dd96
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x1c]
call fcn.00405280
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
jmp 0x51dda8
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 0x51e62c
push 0x51d90c
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetStatusCallback
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x2c], 0
je 0x51de3f
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.00405280
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x10]
call fcn.00405280
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.00405280
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 0x51de9b
push ebp
call fcn.0051dbb4
pop ecx
jmp 0x51e62c
mov byte [ebp - 0xa019], 1
test bl, bl
je 0x51deb3
mov eax, 0x51e698
mov dword [ebp - 0xa020], eax
jmp 0x51debe
mov eax, 0x51e69c
mov dword [ebp - 0xa020], eax
xor esi, esi
mov eax, dword [ebp - 0xa010]
cmp byte [eax + 0xe], 0
jne 0x51ded1
mov esi, 0x80000000
mov eax, dword [ebp - 0xa010]
cmp byte [eax + 0x30], 0
jne 0x51dee3
or esi, 0x80000
cmp byte [ebp - 0xa039], 0
je 0x51df04
or esi, 0x80000
or esi, 0x800000
or esi, 0x1000
or esi, 0x2000
push 2
lea eax, [ebp - 0xa024]
mov ecx, 1
mov edx, dword [0x51db94]
call fcn.00406324
add esp, 4
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x18]
call fcn.00405280
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 0x51dfbf
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.00405280
push eax
push 0x51e6a4
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 8]
call fcn.00405280
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 0x51df9b
push ebp
call fcn.0051dbb4
pop ecx
jmp 0x51e62c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xa010]
call fcn.0051d930
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpSendRequestA
jmp 0x51e05b
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.00405280
push eax
push 0x51e6a4
mov eax, dword [ebp - 0xa02c]
call fcn.00405280
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 0x51e013
push ebp
call fcn.0051dbb4
pop ecx
jmp 0x51e62c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xa010]
call fcn.0051d930
push 0xa0000000
push 0x2f
push 0x51e6b0
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 0xa030]
call fcn.00405080
push eax
mov eax, dword [ebp - 0xa030]
call fcn.00405280
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.0051dbf8
pop ecx
test al, al
jne 0x51e07e
push ebp
call fcn.0051dbb4
pop ecx
jmp 0x51e62c
lea edx, [ebp - 0xa044]
lea eax, [ebp - 0xa00c]
call fcn.0040ac84
mov eax, dword [ebp - 0xa044]
xor edx, edx
call fcn.00409df4
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x4c]
cmp eax, 0xc8
je 0x51e0c8
cmp eax, 0xce
je 0x51e0c8
push ebp
call fcn.0051dbb4
pop ecx
jmp 0x51e62c
mov byte [ebp - 0xa019], 3
cmp byte [ebp + 8], 0
je 0x51e0e1
push ebp
call fcn.0051dbb4
pop ecx
jmp 0x51e62c
push ebp
mov eax, 0xb
call fcn.0051dbf8
pop ecx
test al, al
je 0x51e105
mov eax, dword [ebp - 0xa010]
add eax, 0x40
lea edx, [ebp - 0xa00c]
call fcn.00404fb8
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.0051dbf8
pop ecx
test al, al
je 0x51e251
lea eax, [ebp - 0xa048]
lea edx, [ebp - 0xa00c]
call fcn.00404fb8
mov eax, dword [ebp - 0xa048]
lea edx, [ebp - 0xa028]
call fcn.004097b8
mov edx, dword [ebp - 0xa028]
mov eax, 0x51e6e8
call fcn.004053c4
dec eax
jne 0x51e218
lea eax, [ebp - 0xa028]
push eax
mov ecx, 0x7fffffff
mov edx, 7
mov eax, dword [ebp - 0xa028]
call fcn.004052e0
mov edx, dword [ebp - 0xa028]
mov eax, 0x51e6f8
call fcn.004053c4
mov esi, eax
test esi, esi
jle 0x51e1d2
lea eax, [ebp - 0xa04c]
push eax
mov ecx, esi
dec ecx
xor edx, edx
mov eax, dword [ebp - 0xa028]
call fcn.004052e0
mov eax, dword [ebp - 0xa04c]
xor edx, edx
call fcn.00409df4
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x48], eax
mov edx, dword [ebp - 0xa028]
mov eax, 0x51e704
call fcn.004053c4
mov esi, eax
test esi, esi
jle 0x51e218
lea eax, [ebp - 0xa050]
push eax
lea edx, [esi + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0xa028]
call fcn.004052e0
mov eax, dword [ebp - 0xa050]
xor edx, edx
call fcn.00409df4
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x3c], eax
push ebp
mov eax, 5
call fcn.0051dbf8
pop ecx
test al, al
je 0x51e293
lea edx, [ebp - 0xa054]
lea eax, [ebp - 0xa00c]
call fcn.0040ac84
mov eax, dword [ebp - 0xa054]
xor edx, edx
call fcn.00409df4
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x44], eax
jmp 0x51e293
push ebp
mov eax, 5
call fcn.0051dbf8
pop ecx
test al, al
je 0x51e293
lea edx, [ebp - 0xa058]
lea eax, [ebp - 0xa00c]
call fcn.0040ac84
mov eax, dword [ebp - 0xa058]
xor edx, edx
call fcn.00409df4
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.0051dbf8
pop ecx
test al, al
je 0x51e34f
lea edx, [ebp - 0xa060]
lea eax, [ebp - 0xa00c]
call fcn.0040ac84
mov eax, dword [ebp - 0xa060]
lea edx, [ebp - 0xa05c]
call fcn.004097b8
mov edx, dword [ebp - 0xa05c]
mov eax, dword [ebp - 0xa010]
add eax, 0x38
call fcn.00404e04
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x38]
mov eax, 0x51e710
call fcn.004053c4
mov esi, eax
test esi, esi
je 0x51e34f
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.004052e0
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x38]
mov eax, 0x51e724
call fcn.004053c4
mov esi, eax
test esi, esi
jle 0x51e34f
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.004052e0
mov eax, dword [ebp - 0xa010]
cmp byte [eax + 0x58], 0
je 0x51e533
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 0x51e37f
cmp eax, dword [esp]
pop edx
pop eax
je 0x51e38f
push ebp
call fcn.0051dbb4
pop ecx
jmp 0x51e62c
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x48], 0
jbe 0x51e450
mov dl, 1
mov eax, dword [0x419990]
call fcn.00403f14
mov dword [ebp - 0xa040], eax
xor eax, eax
push ebp
push 0x51e449
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x64]
call fcn.0040a2ac
test al, al
je 0x51e3e5
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 0x51e41f
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.004098ac
test al, al
jne 0x51e430
push ebp
call fcn.0051dbb4
pop ecx
call fcn.004047d0
jmp 0x51e62c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e450
mov eax, dword [ebp - 0xa040]
call fcn.00403f44
ret
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x48], 0
jne 0x51e533
mov dl, 1
mov eax, dword [0x419990]
call fcn.00403f14
mov dword [ebp - 0xa040], eax
xor eax, eax
push ebp
push 0x51e52c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x64]
call fcn.0040a2ac
test al, al
je 0x51e4a6
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 0x51e4e0
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.004098ac
test al, al
jne 0x51e513
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 0x51e533
mov eax, dword [ebp - 0xa040]
call fcn.00403f44
ret
mov eax, dword [ebp - 0xa010]
cmp word [eax + 0x6a], 0
je 0x51e56d
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 0x51e60c
cmp dword [ebp - 0xa038], 0
je 0x51e60c
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 0x51e5ff
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 0x51e574
cmp byte [ebp - 0xa031], 0
je 0x51e61e
mov byte [ebp - 0xa019], 4
jmp 0x51e625
mov byte [ebp - 0xa019], 5
push ebp
call fcn.0051dbb4
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e67d
lea eax, [ebp - 0xa068]
mov edx, 0xa
call fcn.00404dd4
lea eax, [ebp - 0xa030]
mov edx, 3
call fcn.00404dd4
lea eax, [ebp - 0xa024]
mov edx, dword [0x51db94]
call fcn.00406430
lea eax, [ebp - 0xa014]
call fcn.00404db0
ret