Function at 0x40dfd0
Capabilities:
Check for time delay via gettickcount
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41aa7b
mov eax, dword fs:[0]
push eax
mov eax, 0x2288
call fcn.00419ec0
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2290], edx
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x2228], 0
xor eax, eax
mov dword [ebp - 0x222c], 0
mov byte [ebp - 0x2281], 0
mov dword [ebp - 0x2230], 7
mov dword [ebp - 0x2234], edi
mov word [ebp - 0x2244], ax
push 0x3c
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2280]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa24]
push 0x400
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x624]
push 0x400
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x3c
lea eax, [ebp - 0x2280]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2280], 0x3c
lea eax, [ebp - 0x94]
push 0x80
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2278], 0x40
lea eax, [ebp - 0x94]
mov dword [ebp - 0x227c], eax
lea eax, [ebp - 0x1224]
push 0x800
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x226c], 0x400
lea eax, [ebp - 0x1224]
mov dword [ebp - 0x2270], eax
lea eax, [ebp - 0x1a24]
push 0x800
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2250], 0x400
lea eax, [ebp - 0x1a24]
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x2224]
push 0x800
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2248], 0x400
lea eax, [ebp - 0x2224]
mov dword [ebp - 0x224c], eax
lea eax, [ebp - 0x224]
push 0x190
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push edi
push edi
push 0xffffffffffffffff
push ebx
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x40e1a7
cmp esi, 0xc8
jg 0x40e1a7
push 0x190
lea eax, [ebp - 0x224]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x224]
push esi
push eax
push 0xffffffffffffffff
push ebx
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e1b0
lea eax, [ebp - 0x2280]
sub ecx, edx
push eax
push connect
sar ecx, 1
lea eax, [ebp - 0x224]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x40e1f2
push 0x40a8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str._WinHttpCrackUrl_Error_has_occurred.
jmp 0x40e52e
push 0
push 0
push 0
push 0
push str.A_WinHTTP_Example_Program_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push 0x7d0
push 0x7d0
push 0x7d0
mov ebx, eax
push 0x7d0
push ebx
mov dword [ebp - 0x228c], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
jne 0x40e247
push 0x40a8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str._WinHttpSetTimeouts_Error_has_occurred.
jmp 0x40e4f9
test ebx, ebx
je 0x40e51e
push 0
push dword [ebp - 0x2268]
push dword [ebp - 0x2270]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x2288], eax
test eax, eax
je 0x40e4e9
push dword [ebp - 0x2254]
lea ecx, [ebp - 0x2244]
call fcn.0040e5e0
push dword [ebp - 0x224c]
lea ecx, [ebp - 0x2244]
call fcn.0040e590
cmp dword [ebp - 0x2230], 8
lea eax, [ebp - 0x2244]
push 0
cmovae eax, dword [ebp - 0x2244]
push 0
push 0
push 0
push eax
push str.POST
push dword [ebp - 0x2288]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x40e4ad
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 0x40e46e
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40e49a
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2228], eax
mov ebx, eax
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0x2228]
mov dword [ebp - 0x2228], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40e368
push 0x40a8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str._WinHttpQueryDataAvailable_Error_has_occurred.
push eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x400
lea eax, [ebp - 0x624]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x222c]
push eax
push dword [ebp - 0x2228]
lea eax, [ebp - 0x624]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x40e3cb
push 0x40a8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str._WinHttpReadData_Error_has_occurred.
push eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x40e3fa
mov eax, dword [ebp - 0x222c]
test eax, eax
je 0x40e3fa
push eax
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0xa24]
add eax, edi
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x10
add edi, dword [ebp - 0x222c]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x2228], 0
jbe 0x40e41e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7d0
jb 0x40e320
mov ebx, dword [ebp - 0x228c]
test edi, edi
je 0x40e49a
cmp edi, 0x400
ja 0x40e49a
mov eax, dword [ebp - 0x2290]
test eax, eax
je 0x40e49a
push edi
lea ecx, [ebp - 0xa24]
mov byte [ebp - 0x2281], 1
push ecx
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x10
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x2288]
call esi
jmp 0x40e515
push 0x40a8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str._WinHttpSendRequest_Error_has_occurred.
push eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x2288]
call esi
jmp 0x40e515
push 0x40a8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str._WinHttpOpenRequest_Error_has_occurred.
push eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [ebp - 0x2288]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x40e515
push 0x40a8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str._WinHttpConnect_Error_has_occurred.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
test ebx, ebx
je 0x40e54a
push ebx
call esi
jmp 0x40e54a
push 0x40a8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str._WinHttpOpen_Error_has_occurred.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0x2230]
cmp ecx, 8
jb 0x40e562
inc ecx
push ecx
push dword [ebp - 0x2244]
call fcn.0040e670
mov al, byte [ebp - 0x2281]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00418d36
mov esp, ebp
pop ebp
ret