Function at 0x50b5a8
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50b900
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x50b578]
call fcn.00405cec
add esp, 4
push 0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
push eax
mov cl, 1
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0050a4a0
mov eax, 0x50b910
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + 4], edx
mov ebx, 0x4000000
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd9], 0
je 0x50b623
or ebx, 0x400000
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe8], 4
jne 0x50b64d
or ebx, 0x800000
mov eax, dword [ebp - 4]
cmp byte [eax + 0x108], 0
je 0x50b64d
or ebx, 0x1000
or ebx, 0x2000
mov eax, dword [ebp - 4]
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
call fcn.00404c68
push eax
push 0x50b92c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne dl
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.0050b150
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10c], 0
jle 0x50b702
push 4
mov eax, dword [ebp - 4]
add eax, 0x10c
push eax
push 6
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 4]
add eax, 0x10c
push eax
push 6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 4]
add eax, 0x10c
push eax
push 5
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 4]
add eax, 0x10c
push eax
push 5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
push eax
call sub.wininet.dll_InternetSetOptionA
mov dword [ebp - 0x1c], 2
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x3e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
push eax
call sub.wininet.dll_InternetSetOptionA
mov eax, dword [ebp - 8]
mov edx, dword [0x41c3a4]
call fcn.00403af4
test al, al
je 0x50b745
mov eax, dword [ebp - 8]
mov edx, dword [0x41c3a4]
call fcn.00403b18
mov dword [ebp - 0x18], eax
jmp 0x50b75f
mov dl, 1
mov eax, dword [0x41c3a4]
call fcn.0040392c
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.00421b1c
xor eax, eax
push ebp
push 0x50b8bf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xdc]
call fcn.00404840
mov eax, dword [ebp - 4]
add eax, 0xdc
call fcn.004047a8
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404a68
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404c68
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpSendRequestA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x50b85b
call sub.kernel32.dll_GetLastError_1
mov esi, eax
cmp esi, 0x2ee1
jbe 0x50b86f
cmp esi, 0x2f8b
jae 0x50b86f
cmp esi, 0x2f17
je 0x50b80a
cmp esi, 0x2f0d
je 0x50b80a
cmp esi, 0x2f06
je 0x50b80a
cmp esi, 0x2f05
je 0x50b80a
cmp esi, 0x2f19
jne 0x50b81d
mov ecx, esi
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0050bbc0
mov esi, eax
mov bl, 1
jmp 0x50b86f
cmp esi, 0x2f0c
jne 0x50b838
mov ecx, esi
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0050bd18
mov esi, eax
mov bl, 1
jmp 0x50b86f
cmp esi, 0x191
je 0x50b848
cmp esi, 0x192
jne 0x50b86f
mov ecx, esi
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0050bd18
mov esi, eax
mov bl, 1
jmp 0x50b86f
call sub.kernel32.dll_GetLastError_1
mov ecx, eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0050bd18
mov esi, eax
mov edx, ebx
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.0050b150
sub esi, 1
jb 0x50b88e
sub esi, 0x4c6
je 0x50b897
jmp 0x50b76d
push 0
call sub.kernel32.dll_SetLastError
jmp 0x50b8a1
call fcn.0040d2e8
jmp 0x50b76d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b8c6
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
je 0x50b8be
mov eax, dword [ebp - 0x18]
call fcn.0040395c
ret