Function at 0x10001360
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100073f5
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x1000b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x14], 0
push esi
push esi
push esi
push esi
push str.A_WinHTTP_Example_Program_1.0
mov dword [ebp - 0x110], esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x10c], edi
test edi, edi
je 0x100019ec
push esi
push 0x50
push str.dowozkrysztalu.pl
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x118], eax
test eax, eax
je 0x100019e5
push esi
push esi
push esi
push esi
push str._proxy_auth_hwid.txt
push 0x10008400
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x108], esi
test esi, esi
je 0x100019d1
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x100019c6
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x100019c6
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
nop dword [eax + eax]
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x1000157f
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
cmp edi, 0x7fffffff
ja 0x10001a09
cmp edi, 0x1000
jb 0x100014d5
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x10001a13
push eax
call fcn.100063f8
add esp, 4
test eax, eax
je 0x100019aa
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x100014e0
push edi
call fcn.100063f8
add esp, 4
mov esi, eax
push edi
lea eax, [edi + esi]
mov dword [ebp - 0x30], esi
push 0
push esi
mov dword [ebp - 0x28], eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x14], 0
push esi
push dword [ebp - 0x108]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
sub edi, esi
lea ecx, [ebp - 0x20]
push edi
push esi
push dword [ebp - 0x1c]
call fcn.100031f0
mov byte [ebp - 4], 0
test esi, esi
je 0x1000156e
cmp edi, 0x1000
jb 0x1000154f
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x100019aa
mov esi, ecx
push edi
push esi
call fcn.10006742
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x24], 0
jbe 0x1000157f
mov esi, dword [ebp - 0x108]
jmp 0x10001460
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0xfd], 0
cmp esi, dword [ebp - 0x18]
je 0x10001597
mov byte [esi], 0
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100015a7
lea eax, [ebp - 0xfd]
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.100035b0
push 0xa8
lea eax, [ebp - 0xfc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp - 0x20]
xorps xmm0, xmm0
mov esi, edi
mov dword [ebp - 0x2c], 0
add esp, 0xc
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x3c], xmm0
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x100015e0
sub esi, ecx
cmp esi, 0x7fffffff
ja 0x10001a0e
cmp esi, 0xf
ja 0x10001628
push esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], esi
push edi
push eax
mov dword [ebp - 0x28], 0xf
call sub.VCRUNTIME140.dll_memcpy
mov byte [ebp + esi - 0x3c], 0
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x104], eax
jmp 0x100016b1
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x10001660
mov ecx, 0x80000000
mov edi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.100063f8
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100019aa
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1000168e
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
test eax, eax
je 0x1000168e
cmp eax, 0x1000
jb 0x10001685
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x10001a13
jmp 0x10001642
push eax
call fcn.100063f8
add esp, 4
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x104], eax
push eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x104]
mov byte [eax + esi], 0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0xfc], 0x10008504
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x14], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xfc], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x100], eax
lea eax, [ebp - 0xec]
mov ecx, eax
mov dword [ebp - 0x11c], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov ecx, dword [ebp - 0x104]
lea eax, [ebp - 0x3c]
cmp edi, 0xf
mov byte [ebp - 4], 5
mov dword [ebp - 0xec], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmova eax, ecx
mov dword [ebp - 0x114], eax
mov eax, 2
cmp esi, 0x7fffffff
jbe 0x10001768
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_]
test esi, esi
je 0x100017ea
cmp esi, 0x1000
jb 0x1000179d
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x10001a18
push eax
call fcn.100063f8
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100019aa
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x100017a6
push esi
call fcn.100063f8
add esp, 4
push esi
push dword [ebp - 0x114]
mov dword [ebp - 0x14], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [esi + ecx]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xe0]
mov dword [eax], ecx
mov eax, dword [ebp - 0xd0]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x104]
mov dword [eax], esi
mov eax, 3
jmp 0x100017f4
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 7
cmp edi, 0xf
jbe 0x1000182c
inc edi
mov eax, ecx
cmp edi, 0x1000
jb 0x10001822
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100019aa
push edi
push ecx
call fcn.10006742
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xfc]
mov eax, dword [ebp - 0xfc]
xor esi, esi
push 0xa
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xfc]
call fcn.10003400
mov edx, eax
add esp, 4
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
je 0x100018f4
nop word [eax + eax]
inc esi
push 0xa
cmp esi, 0xe
je 0x100018d7
mov eax, dword [ebp - 0xfc]
lea ecx, [ebp - 0xfc]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xfc]
call fcn.10003400
mov edx, eax
add esp, 4
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
jne 0x10001890
jmp 0x100018f4
cmp dword [ebp - 0x40], 0xf
lea eax, [ebp - 0x54]
push 0
cmova eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
add esp, 0xc
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x10001928
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000191e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100019aa
push ecx
push edx
call fcn.10006742
add esp, 8
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xfc], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x100], eax
lea ecx, [ebp - 0xec]
call fcn.10002100
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x100019ba
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100019b0
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100019b0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10006742
add esp, 8
mov edi, dword [ebp - 0x10c]
mov esi, dword [ebp - 0x108]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x100019d7
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x118]
call esi
mov esi, dword [ebp - 0x110]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100063ea
mov esp, ebp
pop ebp
ret
call fcn.100031e0
call fcn.100012d0
call fcn.10001230
call fcn.10001230
int3