Function at 0x505e84
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 0x505e8d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040700c
mov eax, dword [ebp + 0x24]
call fcn.0040700c
mov eax, dword [ebp + 0x20]
call fcn.0040700c
mov eax, dword [ebp + 0x10]
call fcn.0040700c
xor eax, eax
push ebp
push 0x506587
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 - 0xc]
call fcn.0040688c
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [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, 0x5065a8
call fcn.00407f74
jne 0x505fb7
mov eax, dword [ebp - 4]
test eax, eax
je 0x505f94
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x505f94
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406aa8
mov ebx, eax
test ebx, ebx
je 0x505f9f
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 0x50604f
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, 0x5065c4
call fcn.00407f74
jne 0x50604f
mov eax, dword [ebp - 4]
test eax, eax
je 0x506023
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x506023
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406aa8
mov ebx, eax
test ebx, ebx
je 0x50602e
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 0x50606a
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, 0x5065e4
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, 0x5065f4
call fcn.00408344
mov dword [ebp - 0x34], eax
cmp ebx, 1
jge 0x5060db
mov eax, dword [ebp - 4]
test eax, eax
je 0x5060cf
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x5060cf
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406aa8
test eax, eax
je 0x5060d8
sub eax, 4
mov eax, dword [eax]
lea ebx, [eax + 1]
cmp dword [ebp - 0x34], 1
jge 0x50610d
mov eax, dword [ebp - 4]
test eax, eax
je 0x506100
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x506100
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406aa8
test eax, eax
je 0x506109
sub eax, 4
mov eax, dword [eax]
inc eax
mov dword [ebp - 0x34], eax
cmp ebx, dword [ebp - 0x34]
jge 0x5061ba
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040709c
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x34]
sub ecx, ebx
dec ecx
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040709c
xor eax, eax
push ebp
push 0x506173
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1070]
mov edx, dword [ebp - 8]
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 0x50617d
mov eax, dword [ebp - 4]
test eax, eax
je 0x50619c
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x50619c
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406aa8
mov ebx, eax
test ebx, ebx
je 0x5061a7
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
mov ecx, ebx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0040709c
jmp 0x50620a
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x34]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040709c
mov eax, dword [ebp - 4]
test eax, eax
je 0x5061ee
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x5061ee
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406aa8
mov ebx, eax
test ebx, ebx
je 0x5061f9
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
mov ecx, ebx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0040709c
mov eax, dword [ebp - 0x38]
push eax
push 0
push 0
push 0
push 0x5065f8
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x506501
xor edx, edx
push ebp
push 0x5064fa
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp + 0x1c], 0
je 0x506273
push 1
push 0
push 3
mov eax, dword [ebp + 0x20]
call fcn.0040701c
push eax
mov eax, dword [ebp + 0x24]
call fcn.0040701c
push eax
movzx eax, word [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040701c
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x24], eax
jmp 0x50629d
push 1
push 0
push 3
push 0x50662c
push 0x50662c
movzx eax, word [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
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 0x5062ad
call fcn.00406198
jmp 0x506501
xor edx, edx
push ebp
push 0x5064dc
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
mov edx, 0x50663c
call fcn.0040693c
mov eax, dword [ebp - 0x10]
call fcn.0040701c
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0
mov eax, dword [ebp - 0x38]
or eax, 0x3000
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040701c
push eax
push 0x506640
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x50631a
call fcn.00406198
call fcn.00406198
jmp 0x506501
xor edx, edx
push ebp
push 0x5064be
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x506347
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x506347
lea eax, [ebp + 0x10]
xor ecx, ecx
mov edx, dword [ebp + 0x10]
call fcn.00406aa8
mov ebx, eax
test ebx, ebx
je 0x506352
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
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
jne 0x506385
call fcn.00406198
call fcn.00406198
call fcn.00406198
jmp 0x506501
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 0x506416
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 0x506474
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 0x506487
cmp dword [eax], 0xc8
jb 0x50649e
jmp 0x506489
jl 0x50649e
mov eax, dword [ebp + 0x18]
cmp dword [eax + 4], 0
jne 0x50649c
cmp dword [eax], 0x12b
jbe 0x5064a2
jmp 0x50649e
jle 0x5064a2
xor eax, eax
jmp 0x5064a4
mov al, 1
mov byte [ebp - 0x19], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5064c5
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 0x50658e
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 - 0x10]
mov edx, 4
call fcn.004068b0
lea eax, [ebp + 0x10]
call fcn.0040688c
lea eax, [ebp + 0x20]
mov edx, 2
call fcn.004068b0
ret