Function at 0x415720
Capabilities:
Check for peb beingdebugged flag
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push 0xffffffffffffffff
push 0x43b9d2
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4c3740]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c3740]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov esi, edx
mov dword [esp + 0x28], ecx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
xor ebx, ebx
push 0x38
lea eax, [esp + 0x34]
push ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
or ebp, 0xffffffff
mov eax, esi
mov dword [esp + 0x2c], 0x3c
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x64], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4157a5
lea ecx, [esp + 0x2c]
push ecx
sub eax, edx
push ebx
sar eax, 1
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x41599a
push ebx
push ebx
push ebx
push ebx
push str.User_Agent
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x41599a
push ebx
push ebx
push 0x4e20
push 0x4e20
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov edx, dword [esp + 0x3c]
push edx
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [esp + 0xac], ebx
mov eax, dword [esp + 0x40]
push eax
push ebx
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0xb0], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x68]
mov byte [esp + 0xac], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x9c], 8
mov eax, dword [esp + 0x88]
jae 0x41586a
lea eax, [esp + 0x88]
mov edx, dword [esp + 0x44]
push ebx
push edx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x41597f
xor eax, eax
cmp word [esp + 0x44], 0x1bb
setne al
sub eax, 1
and eax, 0x800000
push eax
mov eax, dword [esp + 0x5c]
push ebx
push ebx
push ebx
push eax
push 0x4b3eb4
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
cmp edi, ebx
je 0x415974
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x415969
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x415969
mov ebp, dword [sym.imp.MSVCR80.dll_free]
lea ecx, [esp + 0x14]
push ecx
push edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x415966
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4159a3
mov ecx, dword [esp + 0x24]
add ecx, eax
cmp ecx, dword [esp + 0xb4]
mov dword [esp + 0x24], ecx
jae 0x415966
add eax, 0x10
push eax
push 1
call dword [sym.imp.MSVCR80.dll_calloc]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x415966
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
push esi
je 0x415961
cmp dword [esp + 0x24], ebx
je 0x41599e
mov ecx, dword [esp + 0x2c]
call dword [0x43e254]
push esi
call ebp
add esp, 4
cmp dword [esp + 0x14], ebx
ja 0x4158e4
jmp 0x4159a3
call ebp
add esp, 4
or ebp, 0xffffffff
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [esp + 0x84]
mov dword [esp + 0xac], ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x4159d4
call ebp
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
lea ecx, [esp + 0x84]
mov dword [esp + 0xac], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.00437634
add esp, 0x9c
ret 4