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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001fea5
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x1002b018]
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]
xor ebx, ebx
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x490], ebx
mov dword [ebp - 4], 2
cmp dword [ebp + 0x58], 0x10
mov esi, dword [ebp + 0x44]
jae 0x100151c2
lea esi, [ebp + 0x44]
call fcn.10014dc0
push ebx
push ebx
push ebx
push 1
add eax, 5
push esi
mov dword [0x1015df40], eax
mov dword [0x1015e078], 0x10014db0
call fcn.10014db0
mov dword [ebp - 0x490], eax
cmp eax, ebx
jne 0x100152c3
mov edi, 0x100f6fd2
lea esi, [ebp - 0x46c]
call fcn.1001bba0
mov esi, eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x488]
mov ebx, 0xf
add eax, esi
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
mov ecx, eax
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10015230
sub ecx, esi
mov esi, ecx
mov ecx, dword [ebp - 0x488]
call fcn.10001570
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
xor eax, eax
mov edi, 0x10
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov word [ebp - 0x44c], ax
cmp dword [ebp + 0x20], edi
jb 0x10015298
mov ecx, dword [ebp + 0xc]
push ecx
call esi
add esp, 4
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
cmp dword [ebp + 0x3c], edi
jb 0x100152b4
mov edx, dword [ebp + 0x28]
push edx
call esi
add esp, 4
cmp dword [ebp + 0x58], edi
mov dword [ebp + 0x38], 0
jmp 0x1001593a
mov edx, 7
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x438], eax
mov word [ebp - 0x448], cx
mov byte [ebp - 4], 4
cmp dword [ebp + 0x1c], ebx
jbe 0x100153d4
lea esp, [esp]
cmp dword [ebp + 0x20], 0x10
mov ecx, dword [ebp + 0xc]
jae 0x100152fc
lea ecx, [ebp + 0xc]
movsx cx, byte [ecx + ebx]
movzx edi, cx
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x100153c9
lea esi, [eax + 1]
cmp esi, 0x7ffffffe
ja 0x100153c9
cmp edx, esi
jae 0x10015335
push eax
push esi
lea edx, [ebp - 0x448]
push edx
call fcn.100194d0
jmp 0x10015355
test esi, esi
jne 0x10015363
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x438], esi
cmp edx, 8
jae 0x10015350
lea eax, [ebp - 0x448]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x438]
mov edx, dword [ebp - 0x434]
test esi, esi
setne cl
test cl, cl
je 0x100153ac
mov ecx, dword [ebp - 0x448]
cmp edx, 8
jae 0x1001537b
lea ecx, [ebp - 0x448]
mov word [ecx + eax*2], di
cmp dword [ebp - 0x434], 8
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x438], esi
jae 0x1001539a
lea eax, [ebp - 0x448]
xor edx, edx
mov word [eax + esi*2], dx
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x438]
inc ebx
cmp ebx, dword [ebp + 0x1c]
jb 0x100152f0
cmp edx, 8
jb 0x100153d4
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x48c], eax
jmp 0x100153e0
push 0x10022a24
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x48c], ecx
mov edx, 7
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x41c], eax
mov word [ebp - 0x42c], cx
xor ebx, ebx
mov byte [ebp - 4], 5
cmp dword [ebp + 0x38], ebx
jbe 0x100154d9
jmp 0x10015410
cmp dword [ebp + 0x3c], 0x10
mov ecx, dword [ebp + 0x28]
jae 0x1001541c
lea ecx, [ebp + 0x28]
movsx cx, byte [ecx + ebx]
movzx edi, cx
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x100153c9
lea esi, [eax + 1]
cmp esi, 0x7ffffffe
ja 0x100153c9
cmp edx, esi
jae 0x1001544d
push eax
push esi
lea edx, [ebp - 0x42c]
push edx
call fcn.100194d0
jmp 0x1001546d
test esi, esi
jne 0x1001547b
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x41c], esi
cmp edx, 8
jae 0x10015468
lea eax, [ebp - 0x42c]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x418]
test esi, esi
setne cl
test cl, cl
je 0x100154c4
mov ecx, dword [ebp - 0x42c]
cmp edx, 8
jae 0x10015493
lea ecx, [ebp - 0x42c]
mov word [ecx + eax*2], di
cmp dword [ebp - 0x418], 8
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x41c], esi
jae 0x100154b2
lea eax, [ebp - 0x42c]
xor edx, edx
mov word [eax + esi*2], dx
mov edx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x41c]
inc ebx
cmp ebx, dword [ebp + 0x38]
jb 0x10015410
mov esi, dword [ebp - 0x42c]
cmp edx, 8
jae 0x100154df
lea esi, [ebp - 0x42c]
mov eax, dword [ebp - 0x48c]
mov ecx, dword [ebp - 0x490]
push 0
push 0
push 3
push 0
push 0
push 0x50
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x1001563f
mov ecx, 0x44
lea esp, [esp]
mov dl, byte [eax + str._r2_:__]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x478], dl
jns 0x10015530
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x2b
jl 0x10015510
mov byte [ebp - 0x44d], 0
mov edi, dword [ebp - 0x488]
mov byte [ebp - 4], 6
mov ebx, 0xf
lea eax, [ebp - 0x478]
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], 0
mov byte [edi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10015562
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x478]
mov ecx, edi
call fcn.10001570
push 0x2c
lea eax, [ebp - 0x478]
push 0
push eax
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 0xc
cmp dword [ebp - 0x418], 8
jb 0x100155a8
mov ecx, dword [ebp - 0x42c]
push ecx
call esi
add esp, 4
xor edx, edx
cmp dword [ebp - 0x434], 8
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], edx
mov word [ebp - 0x42c], dx
jb 0x100155d6
mov eax, dword [ebp - 0x448]
push eax
call esi
add esp, 4
xor ecx, ecx
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], ecx
mov word [ebp - 0x448], cx
jb 0x100155fe
mov edx, dword [ebp + 0xc]
push edx
call esi
add esp, 4
cmp dword [ebp + 0x3c], 0x10
mov byte [ebp + 0xc], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], ebx
jb 0x1001561b
mov eax, dword [ebp + 0x28]
push eax
call esi
add esp, 4
cmp dword [ebp + 0x58], 0x10
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x38], 0
mov byte [ebp + 0x28], 0
jb 0x10015638
mov ecx, dword [ebp + 0x44]
push ecx
call esi
add esp, 4
mov eax, edi
jmp 0x10015952
push 0
push 0
lea edx, [ebp - 0x494]
push edx
push 0
push 0
push esi
push 0x100261fc
push eax
mov dword [ebp - 0x494], str.text_
mov dword [ebp - 0x490], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
jne 0x100156ff
mov ecx, 0x44
mov edi, edi
mov dl, byte [eax + str._f127_a9__]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x478], dl
jns 0x100156a0
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x2a
jl 0x10015680
mov byte [ebp - 0x44e], 0
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x488]
lea eax, [ebp + eax - 0x478]
mov ebx, 0xf
mov ecx, eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], 0
mov byte [edi], 0
lea esi, [ecx + 1]
jmp 0x100156e0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x100156e0
sub ecx, esi
mov esi, ecx
mov ecx, edi
call fcn.10001570
push 0x2b
lea eax, [ebp - 0x478]
jmp 0x10015582
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1001579f
mov ecx, 0x43
jmp 0x10015720
mov dl, byte [eax + 0x10026230]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x484], dl
jns 0x10015740
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x39
jl 0x10015720
mov byte [ebp - 0x44b], 0
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x488]
lea eax, [ebp + eax - 0x484]
mov ebx, 0xf
mov ecx, eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], 0
mov byte [edi], 0
lea esi, [ecx + 1]
jmp 0x10015780
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10015780
sub ecx, esi
mov esi, ecx
mov ecx, edi
call fcn.10001570
push 0x3a
lea eax, [ebp - 0x484]
jmp 0x10015582
mov ebx, 0xf
mov dword [ebp - 0x454], ebx
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x48c]
lea edi, [ebp - 0x410]
mov ecx, esi
mov dword [ebp - 0x48c], 0xffffffff
call fcn.1001d3c0
mov edx, dword [ebp - 0x48c]
push edx
mov eax, edi
lea ecx, [ebp - 0x468]
call fcn.10016d20
mov eax, dword [ebp - 0x488]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
lea ecx, [ebp - 0x468]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0
mov byte [eax], 0
cmp eax, ecx
je 0x10015885
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x10015823
mov edx, dword [edi]
push edx
call esi
add esp, 4
xor eax, eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], eax
mov byte [edi], al
cmp dword [ebp - 0x454], 0x10
jae 0x10015863
mov eax, dword [ebp - 0x458]
inc eax
push eax
lea ecx, [ebp - 0x468]
push ecx
push edi
call dword [sym.imp.MSVCR100.dll_memmove]
mov eax, dword [ebp - 0x458]
mov ecx, dword [ebp - 0x454]
add esp, 0xc
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x1001589a
mov edx, dword [ebp - 0x468]
mov ecx, dword [ebp - 0x454]
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x458]
mov dword [edi], edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp 0x1001589a
cmp dword [ebp - 0x454], 0x10
jb 0x1001589a
mov edx, dword [ebp - 0x468]
push edx
call esi
add esp, 4
xor edi, edi
cmp dword [ebp - 0x418], 8
mov dword [ebp - 0x454], ebx
mov dword [ebp - 0x458], edi
mov byte [ebp - 0x468], 0
jb 0x100158c4
mov eax, dword [ebp - 0x42c]
push eax
call esi
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x434], 8
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], edi
mov word [ebp - 0x42c], cx
jb 0x100158f2
mov edx, dword [ebp - 0x448]
push edx
call esi
add esp, 4
xor eax, eax
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], edi
mov word [ebp - 0x448], ax
jb 0x1001591a
mov ecx, dword [ebp + 0xc]
push ecx
call esi
add esp, 4
cmp dword [ebp + 0x3c], 0x10
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x1c], edi
mov byte [ebp + 0xc], 0
jb 0x10015933
mov edx, dword [ebp + 0x28]
push edx
call esi
add esp, 4
cmp dword [ebp + 0x58], 0x10
mov dword [ebp + 0x38], edi
mov byte [ebp + 0x28], 0
mov dword [ebp + 0x3c], ebx
jb 0x1001594c
mov eax, dword [ebp + 0x44]
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x488]
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.1001d525
mov esp, ebp
pop ebp
ret