Function at 0x100263c0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013035e
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x10186bd0]
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 esi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x474], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x478], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x47c], ecx
mov dword [ebp - 0x46c], eax
push 0x3c
mov dword [ebp - 4], 0
call fcn.100eb7d3
mov edi, eax
add esp, 4
lea eax, [edi + 0x18]
mov dword [ebp - 0x480], edi
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x10026458
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x38], ecx
mov byte [edi + 0x34], cl
test esi, esi
je 0x10026c25
test ebx, ebx
je 0x10026c25
mov ecx, dword [ebp - 0x474]
test ecx, ecx
je 0x10026c25
mov eax, dword [ebp - 0x47c]
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x100264ae
mov eax, dword [eax]
mov byte [eax], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100264b4
sub ecx, edx
mov dword [ebp - 0x42c], 0xf
mov dword [ebp - 0x498], ecx
mov dword [ebp - 0x430], 0
mov byte [ebp - 0x440], al
lea edx, [ebp - 0x440]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.100293a0
test al, al
jne 0x1002652d
push str.Failed_in_multibyte_to_wide_conversion__in_HttpSend
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f880
add esp, 8
mov ecx, edi
call fcn.100259a0
lea ecx, [ebp - 0x440]
call fcn.1001d110
mov eax, dword [ebp + 0x10]
push eax
push dword [eax]
lea eax, [ebp - 0x46c]
jmp 0x10026c50
xor eax, eax
lea ecx, [ebp - 0x228]
cmp dword [ebp - 0x42c], 0x10
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.10025a20
add esp, 4
push 0x10000000
push 0
push 0
push 0
push str.IMSLib_Client
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp word [ebp - 0x228], 0
mov ebx, eax
mov dword [ebp - 0x464], ebx
je 0x100265ef
xorps xmm0, xmm0
mov dword [ebp - 0x490], 3
lea eax, [ebp - 0x228]
movq qword [ebp - 0x48c], xmm0
push 0xc
mov dword [ebp - 0x48c], eax
lea eax, [ebp - 0x490]
push eax
push 0x26
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x100265ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_set_proxy__error__d
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f910
add esp, 0x10
lea ecx, [ebp - 0x440]
call fcn.1001d110
lea ecx, [ebp + 0x10]
call fcn.100259f0
jmp 0x10026c64
test ebx, ebx
jne 0x10026614
push str.Failed_to_open_a_WinHttp_session__in_HttpSend
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f880
add esp, 8
mov ecx, edi
call fcn.100259a0
jmp 0x100265d7
push 0x200
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.10104290
push 0x3c
lea eax, [ebp - 0x4d8]
push 0
push eax
call fcn.10104290
add esp, 0x18
mov dword [ebp - 0x4d8], 0x3c
lea eax, [ebp - 0x428]
mov dword [ebp - 0x4c4], 0x100
mov dword [ebp - 0x4c8], eax
xor ebx, ebx
lea eax, [ebp - 0x4d8]
push eax
push 0x10000000
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
cmp eax, 1
jne 0x1002667d
mov ebx, dword [ebp - 0x4c8]
jmp 0x10026695
push str.Failed_in_getting_the_hostname_from_the_formed_url_in_HttpSend_with_error_as__d
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f880
add esp, 0xc
push 0
test ebx, ebx
push 0x1bb
cmovne esi, ebx
push esi
mov esi, dword [ebp - 0x464]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x468], eax
test eax, eax
jne 0x100266e4
push str.Failed_to_connect_to_server__in_HttpSend
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f880
add esp, 8
mov ecx, edi
call fcn.100259a0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x100265d7
push 0x800000
push 0
push 0
push 0
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
jne 0x1002673d
push str.Failed_to_open_http_request__in_HttpSend
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f880
add esp, 8
mov ecx, edi
call fcn.100259a0
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x468]
call esi
jmp 0x100265d7
lea edx, [ebp + 0x10]
mov ecx, ebx
call fcn.10025db0
mov eax, dword [0x1014cd2c]
movups xmm0, xmmword [str.CancelPort]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x18], eax
mov ax, word [0x1014cd30]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
movups xmmword [ebp - 0x28], xmm0
call esi
push 0
push 0
push 0
push 0
mov dword [ebp - 0x45c], eax
call esi
mov esi, eax
mov dword [ebp - 0x494], 0
push 4
lea eax, [ebp - 0x494]
mov dword [ebp - 0x460], esi
push eax
push 0x4d
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xor eax, eax
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], 0
mov word [ebp - 0x458], ax
mov byte [ebp - 4], 2
nop word [eax + eax]
push 0
push 0x7f0000
push 0x10025640
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
je 0x10026c01
mov eax, dword [ebp - 0x498]
push edi
push eax
push eax
push dword [ebp - 0x474]
mov dword [edi], 0
push 0
push 0
push ebx
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], esi
mov dword [edi + 0x30], 0xffffffff
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x10026ba3
imul eax, dword [ebp + 0x24], 0x186a0
mov dword [ebp - 0x48c], esi
mov esi, dword [ebp - 0x45c]
mov dword [ebp - 0x488], esi
push eax
push 0
lea eax, [ebp - 0x48c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0
push 0xffffffffffffffff
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
push 0
lea eax, [ebp - 0x470]
push eax
push 0
push 0
push 0x16
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x100268f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10026914
mov eax, dword [ebp - 0x470]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100ebc5f
add esp, 4
mov esi, eax
lea eax, [ebp - 0x470]
push 0
push eax
push esi
push 0
push 0x16
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
lea ecx, [ebp - 0x458]
call fcn.10027160
push esi
call fcn.100eb37a
mov esi, dword [ebp - 0x45c]
add esp, 4
jmp 0x10026914
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_in_quering_WinHttpHeaders_error:_d
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f880
add esp, 0x10
cmp dword [edi + 0x38], 0xbe
jne 0x10026a9e
mov eax, dword [ebp - 0x478]
test eax, eax
je 0x10026a9e
cmp word [eax], 0
je 0x10026a9e
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f7f0
add esp, 0xc
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x480]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
je 0x10026a45
mov eax, dword [ebp - 0x480]
test al, 0x10
je 0x10026986
mov esi, 0x10
jmp 0x100269ad
test al, 2
je 0x10026991
mov esi, 2
jmp 0x100269ad
test al, 4
je 0x1002699c
mov esi, 4
jmp 0x100269ad
test al, 8
je 0x100269a7
mov esi, 8
jmp 0x100269ad
movzx esi, al
and esi, 1
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x478]
push 0
push dword [ebp - 0x46c]
push eax
push esi
push 1
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x100269f1
mov esi, dword [ebp - 0x460]
mov byte [edi + 0x34], 1
jmp 0x100267e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_in_setting_proxycredentials_in_HttpSend_error:_d
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f7f0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 0x10
push dword [ebp - 0x464]
call esi
push dword [ebp - 0x468]
call esi
push ebx
call esi
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x458]
call fcn.100271b0
jmp 0x100265d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_occured_while_quering_for_Proxy_Authentication_Method__d.
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f910
add esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x460]
call esi
push dword [ebp - 0x464]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x468]
call esi
push ebx
call esi
lea ecx, [ebp - 0x458]
call fcn.100271b0
jmp 0x100265d7
push 0
push 0
push str.The_http_request_returned_HTTP_Status:_d_HttpCommunicator_error:_d
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f7f0
mov eax, dword [edi + 0x38]
add esp, 0x14
mov dword [ebp - 0x46c], eax
cmp eax, 2
je 0x10026af6
cmp eax, 1
je 0x10026af6
mov eax, dword [edi]
test eax, eax
je 0x10026aee
cmp dword [edi + 0xc], 1
jne 0x10026ae8
push dword [edi + 8]
mov ecx, dword [ebp - 0x47c]
push eax
call fcn.1001d600
mov dword [edi], 0
push ecx
mov ecx, edi
call fcn.100259a0
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x10026b4b
cmp dword [ebp - 0x448], 0
je 0x10026b4b
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
push str.Response_header_received_from_the_http_request__s
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f6d0
sub esp, 8
lea eax, [ebp - 0x458]
mov ecx, esp
push eax
call fcn.100272d0
mov ecx, esi
call fcn.10025f10
add esp, 0x18
push dword [ebp - 0x45c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x460]
call esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
push dword [ebp - 0x468]
call esi
push dword [ebp - 0x464]
call esi
lea ecx, [ebp - 0x458]
call fcn.100271b0
lea ecx, [ebp - 0x440]
call fcn.1001d110
lea ecx, [ebp + 0x10]
call fcn.100259f0
mov eax, dword [ebp - 0x46c]
jmp 0x10026c69
push str.Failed_in_making_http_request__in_HttpSend
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f880
add esp, 8
mov ecx, edi
call fcn.100259a0
push dword [ebp - 0x464]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x468]
call esi
push ebx
call esi
push dword [ebp - 0x45c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x460]
call esi
lea ecx, [ebp - 0x458]
call fcn.100271b0
jmp 0x100265d7
push str.Failed_in_setting_status_callback_in_HttpSend
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f880
add esp, 8
mov ecx, edi
call fcn.100259a0
jmp 0x10026a75
push str.invalid_arguments_to_HttpSend
push str.HTTPConnector
call fcn.1002e950
push eax
call fcn.1002f880
add esp, 8
mov ecx, edi
call fcn.100259a0
mov eax, dword [ebp + 0x10]
push eax
push dword [eax]
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp + 0x10]
call fcn.100278f0
push dword [ebp + 0x10]
call fcn.10074570
add esp, 4
mov eax, 5
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.100eb369
mov esp, ebp
pop ebp
ret