Function at 0x510be00c
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x510be014
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.51004a94
xor eax, eax
push ebp
push 0x510be57b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.5100ae90
fstp qword [ebp - 0x88]
wait
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2c], 0
je 0x510be05b
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.5100e85c
lea ecx, [ebp - 0x94]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.510be674
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.510048f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.51009430
test al, al
je 0x510be0ae
push 0x41
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov dl, 1
mov eax, dword [0x51017d74]
call fcn.5101c7bc
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
jmp 0x510be0cb
push 0xffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov dl, 1
mov eax, dword [0x51017d74]
call fcn.5101c7bc
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x14], 0
xor eax, eax
mov dword [ebp - 0x70], eax
xor eax, eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 0
jne 0x510be4c6
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x78]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.510bde70
lea eax, [ebp - 0x10]
mov edx, 0x510be594
call fcn.5100467c
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.51004aa4
push eax
call sub.wininet.dll_InternetOpenA
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 0
jne 0x510be4c6
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x78]
call fcn.5100467c
mov word [ebp - 0x16], 0x50
lea eax, [ebp - 0x1c]
call fcn.510045e4
lea eax, [ebp - 0x20]
call fcn.510045e4
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 3
mov eax, dword [ebp - 0x20]
call fcn.51004aa4
push eax
mov eax, dword [ebp - 0x1c]
call fcn.51004aa4
push eax
mov ax, word [ebp - 0x16]
push eax
mov eax, dword [ebp - 0x14]
call fcn.51004aa4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wininet.dll_InternetConnectA
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 0
jne 0x510be4c6
lea eax, [ebp - 0x34]
mov edx, 0x510be610
call fcn.5100467c
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x7c]
call fcn.5100467c
lea eax, [ebp - 0x3c]
call fcn.510045e4
lea eax, [ebp - 0x40]
call fcn.510045e4
lea eax, [ebp - 0x44]
mov edx, 0x510be61c
call fcn.5100467c
mov dword [ebp - 0x2c], 0x806cc200
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
call fcn.51004aa4
push eax
mov eax, dword [ebp - 0x3c]
call fcn.51004aa4
push eax
mov eax, dword [ebp - 0x38]
call fcn.51004aa4
push eax
mov eax, dword [ebp - 0x34]
call fcn.51004aa4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.wininet.dll_HttpSendRequestA
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 0
jne 0x510be4c6
mov esi, 0x16
mov dword [ebp - 0x4c], 0x20
mov eax, dword [ebp - 0x4c]
inc eax
call fcn.5100898c
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x54], eax
jmp 0x510be2cd
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x7a
jne 0x510be28e
mov eax, dword [ebp - 0x50]
call fcn.51002abc
mov eax, dword [ebp - 0x4c]
inc eax
call fcn.5100898c
mov dword [ebp - 0x50], eax
jmp 0x510be2cd
lea eax, [ebp - 0x58]
push eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0xa0], 0
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0
lea edx, [ebp - 0xa4]
mov ecx, 1
mov eax, 0x510be628
call fcn.51009ec0
jmp 0x510be2ea
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x50]
push eax
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x510be26c
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov byte [eax + edx], 0
mov dl, 1
mov eax, dword [0x51017b50]
call fcn.51003748
mov dword [ebp - 0x64], eax
xor eax, eax
push ebp
push 0x510be3a0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0xa8]
mov edx, dword [ebp - 0x50]
call fcn.510047dc
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov dl, 0x3a
mov eax, dword [ebp - 0x64]
call fcn.5101bc80
xor eax, eax
push ebp
push 0x510be380
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xac]
mov edx, 0x510be65c
mov eax, dword [ebp - 0x64]
call fcn.5101b4f0
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0x6c]
call fcn.51008c98
mov eax, dword [ebp - 0x6c]
call fcn.51009020
mov dword [ebp - 0x70], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510be38a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510be3a7
mov eax, dword [ebp - 0x64]
call fcn.51003778
ret
mov eax, dword [ebp - 4]
call fcn.510be7a8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 0
je 0x510be4eb
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2c], 0
je 0x510be4eb
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.5100e85c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 0
jne 0x510be506
cmp dword [ebp - 0x70], 0
je 0x510be506
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x70]
jne 0x510be506
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510be582
lea eax, [ebp - 0xac]
mov edx, 2
call fcn.51004608
lea eax, [ebp - 0x94]
call fcn.510045e4
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.51004608
lea eax, [ebp - 0x6c]
call fcn.510045e4
lea eax, [ebp - 0x58]
call fcn.510045e4
lea eax, [ebp - 0x44]
mov edx, 5
call fcn.51004608
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.51004608
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.51004608
lea eax, [ebp - 8]
call fcn.510045e4
ret