Function at 0x518b00
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9ebb
mov eax, dword fs:[0]
push eax
mov eax, 0x2038
call fcn.00549c70
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 eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x203c], eax
mov eax, dword [esi + 8]
xor ebx, ebx
mov dword [ebp - 0x2040], ebx
cmp eax, ebx
je 0x518eec
cmp eax, 0xffffffff
je 0x518eec
xor edx, edx
cmp dword [esi + 0x84], 2
push ebx
setne dl
dec edx
and edx, 0x800000
or edx, 0x4400040
push edx
push 0x66e49c
push ecx
mov ecx, dword [ebp - 0x203c]
push str.HTTP_1.0
push ecx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x518edd
cmp eax, 0xffffffff
je 0x518edd
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push SysReAllocString
push 0xd
push str.Accept:___r_n
push eax
call edi
test eax, eax
jne 0x518bdd
mov dword [ebp - 0x203c], str.additional_header_failed...
push 0x62ff74
lea edx, [ebp - 0x203c]
push edx
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [esi + 0xc]
push 0x10000000
push 0x4e
push str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_r_n
push eax
call edi
test eax, eax
jne 0x518c0e
push 0x62ff74
lea ecx, [ebp - 0x203c]
push ecx
mov dword [ebp - 0x203c], str.additional_header_failed...
call sub.MSVCR100.dll__CxxThrowException
cmp dword [esi + 0xa0], ebx
jbe 0x518d58
mov dword [ebp - 0x2024], 0xf
mov dword [ebp - 0x2028], ebx
mov byte [ebp - 0x2038], bl
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x84]
dec eax
je 0x518c48
dec eax
jne 0x518c5a
push 8
push str.https:__
jmp 0x518c4f
push 7
push 0x625f5c
lea ecx, [ebp - 0x2038]
call fcn.00405f10
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
jb 0x518c65
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2038]
call fcn.0042ae60
mov eax, dword [esi + 0x84]
cmp eax, 1
jne 0x518c86
cmp word [esi + 0x80], 0x50
je 0x518cde
cmp eax, 2
jne 0x518c99
mov edx, 0x1bb
cmp word [esi + 0x80], dx
je 0x518cde
movzx ecx, word [esi + 0x80]
push ecx
xor eax, eax
lea edx, [ebp - 0x1c]
push 0x625f70
push edx
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x1c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x518cc5
sub eax, edx
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2038]
call fcn.00419b50
mov ecx, dword [ebp - 0x203c]
push ecx
lea ecx, [ebp - 0x2038]
call fcn.0042ae60
mov eax, dword [esi + 0x9c]
mov ebx, dword [eax]
cmp ebx, eax
je 0x518d46
mov edi, dword [sym.imp.WININET.dll_InternetSetCookieA]
mov eax, dword [ebx + 8]
lea ecx, [eax + 0x1c]
mov edx, 0x10
cmp dword [ecx + 0x14], edx
jb 0x518d14
mov ecx, dword [ecx]
cmp dword [eax + 0x14], edx
jb 0x518d1b
mov eax, dword [eax]
cmp dword [ebp - 0x2024], edx
mov edx, dword [ebp - 0x2038]
jae 0x518d2f
lea edx, [ebp - 0x2038]
push ecx
push eax
push edx
call edi
test eax, eax
je 0x518e15
mov ebx, dword [ebx]
cmp ebx, dword [esi + 0x9c]
jne 0x518d02
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2038]
call fcn.00406010
push esi
lea ebx, [ebp - 0x2040]
call fcn.00518a60
push 0x1ffe
xor edi, edi
mov ebx, eax
lea ecx, [ebp - 0x201a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x201c], ax
call sub.MSVCR100.dll_memset
push ebx
lea edx, [ebp - 0x201c]
push str.Content_Length:__u_r_n
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x201c]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x518da2
mov ecx, dword [esi + 0xc]
push 0x10000000
sub eax, edx
push eax
lea eax, [ebp - 0x201c]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x518bc2
push edi
push 8
push edi
mov dword [0x679688], 0x28
mov dword [0x67968c], edi
mov eax, dword [esi + 0xc]
push 0x679688
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x518e30
mov ecx, dword [ebp - 0x2040]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x203c], str.request_failed
jmp 0x518bcc
push 0x62ff74
lea edx, [ebp - 0x203c]
push edx
mov dword [ebp - 0x203c], str.add_cookie_failed...
call sub.MSVCR100.dll__CxxThrowException
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x2044]
push eax
mov dword [ebp - 0x2044], edi
mov edi, dword [ebp - 0x2040]
push ebx
push edi
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x518e71
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x203c], str.request_failed
jmp 0x518bcc
mov eax, dword [esi + 0xc]
push 0
push 8
push 0
push eax
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push edi
push 0
test eax, eax
jne 0x518eb0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x62ff74
lea ecx, [ebp - 0x203c]
mov dword [ebp - 0x203c], str.request_failed
push ecx
jmp 0x518bd8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
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
mov dword [ebp - 0x203c], str.request_failed...
jmp 0x518bcc
push 0x62ff74
lea eax, [ebp - 0x203c]
mov dword [ebp - 0x203c], str.handle_not_opened...
push eax
jmp 0x518bd8