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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d4e8
mov eax, dword fs:[0]
push eax
sub esp, 0x55c
mov eax, dword [0x43b06c]
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 - 0x10], esp
mov edx, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
lea esi, [ecx + 2]
xorps xmm0, xmm0
mov dword [ebp - 0x500], eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x51c], 0
mov dword [ebp - 0x518], 0
mov dword [ebp - 0x514], 0
movlpd qword [ebp - 0x50c], xmm0
mov dword [ebp - 0x504], 0
movlpd qword [ebp - 0x4f8], xmm0
movlpd qword [ebp - 0x4f0], xmm0
mov dword [ebp - 0x4e8], 0
movlpd qword [ebp - 0x4dc], xmm0
mov dword [ebp - 0x510], 0x3c
mov dword [ebp - 0x4fc], 0x100
mov dword [ebp - 0x4e4], eax
mov dword [ebp - 0x4e0], 0x100
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402420
lea eax, [ebp - 0x510]
sub ecx, esi
push eax
push 0
sar ecx, 1
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x402789
push 0
push 0
push 0
push 0
push str.A_WinHTTP_Example_Program_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x51c], eax
test eax, eax
je 0x4027aa
push 0
push dword [ebp - 0x4f8]
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0x518], ecx
test ecx, ecx
je 0x4027cb
xor eax, eax
mov edx, 0x800000
cmp dword [ebp - 0x504], 2
cmove eax, edx
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x418]
push eax
push 0x436fdc
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x514], edi
test edi, edi
je 0x4027ec
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x40280d
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40282e
push 0xb0
lea eax, [ebp - 0x4d0]
push 0
push eax
call fcn.004109f0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.004066d0
mov byte [ebp - 4], 2
mov dword [ebp - 0x41c], 0
nop word [eax + eax]
lea eax, [ebp - 0x4d4]
mov dword [ebp - 0x4d4], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x402580
mov edx, str.Error
mov ecx, 0x43c2f0
call fcn.0040a090
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00406c50
mov edx, str._in_WinHttpQueryDataAvailable.
mov ecx, eax
call fcn.0040a090
push eax
call fcn.0040a340
add esp, 4
mov eax, dword [ebp - 0x4d4]
inc eax
push eax
call fcn.0040f22c
mov ecx, dword [ebp - 0x4d4]
add esp, 4
inc ecx
mov esi, eax
push ecx
push 0
push esi
call fcn.004109f0
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x4d4]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4025f4
mov edx, str.Error
mov ecx, 0x43c2f0
call fcn.0040a090
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.00406c50
mov edx, str._in_WinHttpReadData.
mov ecx, eax
call fcn.0040a090
push eax
call fcn.0040a340
add esp, 4
jmp 0x402608
push 0
push dword [ebp - 0x41c]
lea ecx, [ebp - 0x4d0]
push esi
call fcn.00406810
push esi
call fcn.0040efec
add esp, 4
cmp dword [ebp - 0x4d4], 0
ja 0x402530
lea ecx, [ebp - 0x4cc]
call fcn.00408870
test eax, eax
jne 0x402656
mov eax, dword [ebp - 0x4d0]
lea ecx, [ebp - 0x4d0]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402140
mov eax, dword [ebp - 0x4d0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x4d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x4d4], eax
lea ecx, [ebp - 0x4cc]
call fcn.00406320
mov eax, dword [ebp - 0x4d0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x4d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x4d4], eax
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040e42e
add esp, 4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
jmp 0x40271f
mov eax, dword [ebp - 0x518]
test eax, eax
je 0x40272c
push eax
call esi
mov eax, dword [ebp - 0x51c]
test eax, eax
je 0x402739
push eax
call esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40276d
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402763
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40284f
push ecx
push edx
call fcn.0040f21e
add esp, 8
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.0040efde
mov esp, ebp
pop ebp
ret
push str.Error_in_WinHttpCrackUrl
lea ecx, [ebp - 0x52c]
call fcn.00401470
push 0x43a184
lea eax, [ebp - 0x52c]
push eax
call fcn.004103e4
push str.Error_in_WinHttpOpen
lea ecx, [ebp - 0x538]
call fcn.00401470
push 0x43a184
lea eax, [ebp - 0x538]
push eax
call fcn.004103e4
push str.Error_in_WinHttpConnect
lea ecx, [ebp - 0x544]
call fcn.00401470
push 0x43a184
lea eax, [ebp - 0x544]
push eax
call fcn.004103e4
push str.Error_in_WinHttpOpenRequest
lea ecx, [ebp - 0x550]
call fcn.00401470
push 0x43a184
lea eax, [ebp - 0x550]
push eax
call fcn.004103e4
push str.Error_in_WinHttpSendRequest
lea ecx, [ebp - 0x55c]
call fcn.00401470
push 0x43a184
lea eax, [ebp - 0x55c]
push eax
call fcn.004103e4
push str.Error_in_WinHttpReceiveResponse
lea ecx, [ebp - 0x568]
call fcn.00401470
push 0x43a184
lea eax, [ebp - 0x568]
push eax
call fcn.004103e4
call fcn.00417d1f
int3