Function at 0x518450
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x669404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x518701
cmp eax, 0xffffffff
je 0x518701
xor edx, edx
cmp dword [esi + 0x84], 2
push ebx
setne dl
dec edx
and edx, 0x800000
or edx, 0x4400040
push edx
push 0x66e494
push ecx
push str.HTTP_1.0
push edi
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x5186ec
cmp eax, 0xffffffff
je 0x5186ec
push SysReAllocString
push 0xd
push str.Accept:___r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x51850c
push 0x62ff74
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], str.additional_header_failed...
call sub.MSVCR100.dll__CxxThrowException
cmp dword [esi + 0xa0], ebx
jbe 0x51863a
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x84]
dec eax
je 0x51853d
dec eax
jne 0x51854c
push 8
push str.https:__
jmp 0x518544
push 7
push 0x625f5c
lea ecx, [ebp - 0x38]
call fcn.00405f10
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
jb 0x518557
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x38]
call fcn.0042ae60
mov eax, dword [esi + 0x84]
cmp eax, 1
jne 0x518575
cmp word [esi + 0x80], 0x50
je 0x5185cc
cmp eax, 2
jne 0x518588
mov ecx, 0x1bb
cmp word [esi + 0x80], cx
je 0x5185cc
xor eax, eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
movzx eax, word [esi + 0x80]
push eax
lea ecx, [ebp - 0x1c]
xor edx, edx
push 0x625f70
push ecx
mov word [ebp - 0x1c], dx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x1c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5185b6
sub eax, edx
push eax
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x38]
call fcn.00419b50
push edi
lea ecx, [ebp - 0x38]
call fcn.0042ae60
mov eax, dword [esi + 0x9c]
mov edi, dword [eax]
cmp edi, eax
je 0x51862b
mov ebx, dword [sym.imp.WININET.dll_InternetSetCookieA]
jmp 0x5185f0
mov eax, dword [edi + 8]
lea ecx, [eax + 0x1c]
mov edx, 0x10
cmp dword [ecx + 0x14], edx
jb 0x518602
mov ecx, dword [ecx]
cmp dword [eax + 0x14], edx
jb 0x518609
mov eax, dword [eax]
cmp dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x38]
jae 0x518614
lea edx, [ebp - 0x38]
push ecx
push eax
push edx
call ebx
test eax, eax
je 0x5186ab
mov edi, dword [edi]
cmp edi, dword [esi + 0x9c]
jne 0x5185f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00406010
mov eax, esi
call fcn.00518330
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
inc eax
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, esi
call fcn.00518330
inc eax
push eax
push edi
push esi
call fcn.00518380
mov ecx, dword [esi + 0xc]
push eax
push edi
push 0x31
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x5186c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f88
je 0x5186c0
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x62ff74
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x3c], str.request_failed...
call sub.MSVCR100.dll__CxxThrowException
push 0x62ff74
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], str.add_cookie_failed...
call sub.MSVCR100.dll__CxxThrowException
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00546bdc
mov esp, ebp
pop ebp
ret 8
push 0x62ff74
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], str.request_failed...
call sub.MSVCR100.dll__CxxThrowException
push 0x62ff74
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], str.handle_not_opened...
call sub.MSVCR100.dll__CxxThrowException
int3