Function at 0x506ea0
Capabilities:
Check http status code
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x20f
push 0
push 0
dec ecx
jne 0x506ea9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040700c
mov eax, dword [ebp - 8]
call fcn.0040700c
mov eax, dword [ebp - 0xc]
call fcn.0040700c
mov eax, dword [ebp + 0x10]
call fcn.0040700c
xor eax, eax
push ebp
push 0x50755d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
lea eax, [ebp - 0x104c]
mov edx, dword [ebp - 4]
call fcn.00407ab8
mov eax, dword [ebp - 0x104c]
lea edx, [ebp - 0x1048]
call fcn.00413c68
mov edx, dword [ebp - 0x1048]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00407ae0
lea eax, [ebp - 0x14]
call fcn.0040688c
lea eax, [ebp - 0x1058]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040709c
mov edx, dword [ebp - 0x1058]
lea eax, [ebp - 0x1054]
call fcn.00407ab8
mov eax, dword [ebp - 0x1054]
lea edx, [ebp - 0x1050]
call fcn.00413540
mov eax, dword [ebp - 0x1050]
mov edx, 0x507580
call fcn.00407f74
jne 0x506fbb
mov eax, dword [ebp - 4]
test eax, eax
je 0x506f98
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x506f98
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406aa8
mov ebx, eax
test ebx, ebx
je 0x506fa3
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
mov ecx, ebx
mov edx, 8
mov eax, dword [ebp - 4]
call fcn.0040709c
jmp 0x507053
lea eax, [ebp - 0x1064]
push eax
mov ecx, 8
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040709c
mov edx, dword [ebp - 0x1064]
lea eax, [ebp - 0x1060]
call fcn.00407ab8
mov eax, dword [ebp - 0x1060]
lea edx, [ebp - 0x105c]
call fcn.00413540
mov eax, dword [ebp - 0x105c]
mov edx, 0x50759c
call fcn.00407f74
jne 0x507053
mov eax, dword [ebp - 4]
test eax, eax
je 0x507027
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x507027
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406aa8
mov ebx, eax
test ebx, ebx
je 0x507032
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
mov ecx, ebx
mov edx, 9
mov eax, dword [ebp - 4]
call fcn.0040709c
mov dword [ebp + 8], 0x1bb
mov dword [ebp - 0x38], 0x800000
cmp byte [ebp + 0xc], 0
je 0x50706e
mov eax, dword [ebp - 0x38]
or eax, 0x4000000
or eax, 0x4000000
or eax, 0x80000000
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x1068]
mov edx, dword [ebp - 4]
call fcn.00407ab8
mov edx, dword [ebp - 0x1068]
mov eax, 0x5075bc
call fcn.00408344
mov ebx, eax
lea eax, [ebp - 0x106c]
mov edx, dword [ebp - 4]
call fcn.00407ab8
mov edx, dword [ebp - 0x106c]
mov eax, 0x5075cc
call fcn.00408344
mov dword [ebp - 0x2c], eax
cmp ebx, 1
jge 0x5070df
mov eax, dword [ebp - 4]
test eax, eax
je 0x5070d3
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x5070d3
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406aa8
test eax, eax
je 0x5070dc
sub eax, 4
mov eax, dword [eax]
lea ebx, [eax + 1]
cmp dword [ebp - 0x2c], 1
jge 0x507111
mov eax, dword [ebp - 4]
test eax, eax
je 0x507104
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x507104
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406aa8
test eax, eax
je 0x50710d
sub eax, 4
mov eax, dword [eax]
inc eax
mov dword [ebp - 0x2c], eax
cmp ebx, dword [ebp - 0x2c]
jge 0x5071be
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040709c
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
sub ecx, ebx
dec ecx
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040709c
xor eax, eax
push ebp
push 0x507177
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1070]
mov edx, dword [ebp - 0x10]
call fcn.00407ab8
mov eax, dword [ebp - 0x1070]
call fcn.00414654
mov dword [ebp + 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x507181
mov eax, dword [ebp - 4]
test eax, eax
je 0x5071a0
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x5071a0
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406aa8
mov ebx, eax
test ebx, ebx
je 0x5071ab
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
mov ecx, ebx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0040709c
jmp 0x50720e
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040709c
mov eax, dword [ebp - 4]
test eax, eax
je 0x5071f2
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x5071f2
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406aa8
mov ebx, eax
test ebx, ebx
je 0x5071fd
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
mov ecx, ebx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0040709c
push 0
push 0
push 0
push 0
push 0x5075d0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5074e4
xor edx, edx
push ebp
push 0x5074dd
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp + 0x1c], 0
je 0x507275
push 1
push 0
push 3
mov eax, dword [ebp - 0xc]
call fcn.0040701c
push eax
mov eax, dword [ebp - 8]
call fcn.0040701c
push eax
movzx eax, word [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040701c
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x24], eax
jmp 0x50729f
push 1
push 0
push 3
push 0x507604
push 0x507604
movzx eax, word [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040701c
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x5072af
call fcn.00406198
jmp 0x5074e4
xor edx, edx
push ebp
push 0x5074bf
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x18]
mov edx, 0x507614
call fcn.0040693c
mov eax, dword [ebp - 0x18]
call fcn.0040701c
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
push 0
mov eax, dword [ebp - 0x38]
or eax, 0x3000
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040701c
push eax
push 0x507618
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x5074a8
xor edx, edx
push ebp
push 0x5074a1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x50733e
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x50733e
lea eax, [ebp + 0x10]
xor ecx, ecx
mov edx, dword [ebp + 0x10]
call fcn.00406aa8
mov ebx, eax
test ebx, ebx
je 0x507349
sub ebx, 4
mov ebx, dword [ebx]
push 0
push 0
push ebx
mov eax, dword [ebp + 0x10]
call fcn.0040701c
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x50748a
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x1001
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xffffffff
mov dword [eax + 4], 0xffffffff
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1041]
push eax
push 0x13
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x5073f9
lea eax, [ebp - 0x1078]
push eax
lea eax, [ebp - 0x107c]
lea edx, [ebp - 0x1041]
mov ecx, 0x1001
push 0
call fcn.00406bf4
mov eax, dword [ebp - 0x107c]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
call fcn.0040709c
mov edx, dword [ebp - 0x1078]
lea eax, [ebp - 0x1074]
call fcn.00407ab8
mov eax, dword [ebp - 0x1074]
or edx, 0xffffffff
call fcn.00414690
cdq
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x1001
mov eax, dword [ebp + 0x14]
call fcn.0040688c
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1041]
push eax
push 0x16
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x507457
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x1080]
lea edx, [ebp - 0x1041]
mov ecx, 0x1001
push 0
call fcn.00406bf4
mov eax, dword [ebp - 0x1080]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
call fcn.0040709c
mov eax, dword [ebp + 0x18]
cmp dword [eax + 4], 0
jne 0x50746a
cmp dword [eax], 0xc8
jb 0x507481
jmp 0x50746c
jl 0x507481
mov eax, dword [ebp + 0x18]
cmp dword [eax + 4], 0
jne 0x50747f
cmp dword [eax], 0x12b
jbe 0x507485
jmp 0x507481
jle 0x507485
xor eax, eax
jmp 0x507487
mov al, 1
mov byte [ebp - 0x19], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5074a8
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5074c6
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507564
lea eax, [ebp - 0x1080]
mov edx, 3
call fcn.004068b0
lea eax, [ebp - 0x1074]
mov edx, 4
call fcn.00407884
lea eax, [ebp - 0x1064]
call fcn.0040688c
lea eax, [ebp - 0x1060]
mov edx, 2
call fcn.00407884
lea eax, [ebp - 0x1058]
call fcn.0040688c
lea eax, [ebp - 0x1054]
mov edx, 4
call fcn.00407884
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004068b0
lea eax, [ebp + 0x10]
call fcn.0040688c
ret