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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020ff5
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x1002c018]
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 0x100154c2
lea esi, [ebp + 0x44]
call fcn.100150c0
push ebx
push ebx
push ebx
push 1
add eax, 5
push esi
mov dword [0x1015ef7c], eax
mov dword [0x1015f0d4], 0x100150b0
call fcn.100150b0
mov dword [ebp - 0x490], eax
cmp eax, ebx
jne 0x100155c3
mov edi, 0x100f8126
lea esi, [ebp - 0x46c]
call fcn.1001ce00
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 0x10015530
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 0x10015598
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 0x100155b4
mov edx, dword [ebp + 0x28]
push edx
call esi
add esp, 4
cmp dword [ebp + 0x58], edi
mov dword [ebp + 0x38], 0
jmp 0x10015c3a
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 0x100156d4
lea esp, [esp]
cmp dword [ebp + 0x20], 0x10
mov ecx, dword [ebp + 0xc]
jae 0x100155fc
lea ecx, [ebp + 0xc]
movsx cx, byte [ecx + ebx]
movzx edi, cx
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x100156c9
lea esi, [eax + 1]
cmp esi, 0x7ffffffe
ja 0x100156c9
cmp edx, esi
jae 0x10015635
push eax
push esi
lea edx, [ebp - 0x448]
push edx
call fcn.1001a440
jmp 0x10015655
test esi, esi
jne 0x10015663
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x438], esi
cmp edx, 8
jae 0x10015650
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 0x100156ac
mov ecx, dword [ebp - 0x448]
cmp edx, 8
jae 0x1001567b
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 0x1001569a
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 0x100155f0
cmp edx, 8
jb 0x100156d4
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x48c], eax
jmp 0x100156e0
push 0x10023ab4
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 0x100157d9
jmp 0x10015710
cmp dword [ebp + 0x3c], 0x10
mov ecx, dword [ebp + 0x28]
jae 0x1001571c
lea ecx, [ebp + 0x28]
movsx cx, byte [ecx + ebx]
movzx edi, cx
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x100156c9
lea esi, [eax + 1]
cmp esi, 0x7ffffffe
ja 0x100156c9
cmp edx, esi
jae 0x1001574d
push eax
push esi
lea edx, [ebp - 0x42c]
push edx
call fcn.1001a440
jmp 0x1001576d
test esi, esi
jne 0x1001577b
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x41c], esi
cmp edx, 8
jae 0x10015768
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 0x100157c4
mov ecx, dword [ebp - 0x42c]
cmp edx, 8
jae 0x10015793
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 0x100157b2
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 0x10015710
mov esi, dword [ebp - 0x42c]
cmp edx, 8
jae 0x100157df
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 0x1001593f
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 0x10015830
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x2b
jl 0x10015810
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 0x10015862
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 0x100158a8
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 0x100158d6
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 0x100158fe
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 0x1001591b
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 0x10015938
mov ecx, dword [ebp + 0x44]
push ecx
call esi
add esp, 4
mov eax, edi
jmp 0x10015c52
push 0
push 0
lea edx, [ebp - 0x494]
push edx
push 0
push 0
push esi
push 0x10027350
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 0x100159ff
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 0x100159a0
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x2a
jl 0x10015980
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 0x100159e0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x100159e0
sub ecx, esi
mov esi, ecx
mov ecx, edi
call fcn.10001570
push 0x2b
lea eax, [ebp - 0x478]
jmp 0x10015882
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x10015a9f
mov ecx, 0x43
jmp 0x10015a20
mov dl, byte [eax + 0x10027384]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x484], dl
jns 0x10015a40
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x39
jl 0x10015a20
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 0x10015a80
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10015a80
sub ecx, esi
mov esi, ecx
mov ecx, edi
call fcn.10001570
push 0x3a
lea eax, [ebp - 0x484]
jmp 0x10015882
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.1001e6b0
mov edx, dword [ebp - 0x48c]
push edx
mov eax, edi
lea ecx, [ebp - 0x468]
call fcn.100179a0
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 0x10015b85
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x10015b23
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 0x10015b63
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 0x10015b9a
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 0x10015b9a
cmp dword [ebp - 0x454], 0x10
jb 0x10015b9a
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 0x10015bc4
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 0x10015bf2
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 0x10015c1a
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 0x10015c33
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 0x10015c4c
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.1001e772
mov esp, ebp
pop ebp
ret