Function at 0x5180f0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1451
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x60a070]
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 edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x320], eax
cmp dword [ecx + 0x10], 0
mov dword [ebp - 0x31c], ecx
sete al
mov dword [ebp - 0x318], edx
test al, al
jne 0x51987f
cmp dword [ecx + 0x28], 0
lea ebx, [ecx + 0x18]
sete al
test al, al
jne 0x51987f
cmp dword [ecx + 0x40], 0
lea eax, [ecx + 0x30]
mov dword [ebp - 0x21c], eax
sete al
test al, al
jne 0x51987f
lea esi, [edi + 0xc0]
mov ecx, esi
call fcn.00413340
push str.CancelPort
lea ecx, [ebp - 0x290]
mov byte [edi + 0x118], 0
call fcn.00413890
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x290]
mov dword [ebp - 4], 0
call fcn.00414250
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
cmovae eax, dword [ebp - 0x290]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [edi + 0xe0], eax
mov eax, dword [ebp - 0x318]
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x5181eb
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x25c], 0xf
mov dword [ebp - 0x260], ecx
mov byte [ebp - 0x270], cl
mov esi, dword [ebp - 0x31c]
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x51821a
mov ecx, dword [esi]
jmp 0x51821c
mov ecx, esi
push 0
lea edx, [ebp - 0x270]
call fcn.00502420
add esp, 4
test al, al
jne 0x5182a6
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x51826c
mov eax, dword [0x615408]
test eax, eax
je 0x518262
push str.Failed_in_multibyte_to_wide_conversion__in_HttpSend
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x518286
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x518286
mov eax, dword [ecx]
push str.Failed_in_multibyte_to_wide_conversion__in_HttpSend
push str.HTTPConnector
push 0x5c0ec0
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
lea ecx, [ebp - 0x270]
call fcn.00405410
lea ecx, [ebp - 0x290]
call fcn.004137d0
mov eax, 5
jmp 0x5198da
mov dword [ebp - 0x22c], 0xf
mov dword [ebp - 0x230], 0
mov byte [ebp - 0x240], 0
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 2
cmp dword [ecx + 0x14], 8
jb 0x5182d0
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x240]
call fcn.00502420
push dword [edi + 0x30]
xor eax, eax
lea ecx, [ebp - 0x210]
cmp dword [ebp - 0x25c], 0x10
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x270]
cmovae eax, dword [ebp - 0x270]
push eax
call fcn.00516c10
push dword [edi + 0x30]
call fcn.0051bbb0
add esp, 0x10
mov byte [ebp - 0x311], al
cmp word [ebp - 0x210], 0
push 0x10000000
push 0
jne 0x518331
push 0
push 0
jmp 0x51833a
lea eax, [ebp - 0x210]
push eax
push 3
push 0x5e5a28
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp byte [ebp - 0x311], 0
mov dword [ebp - 0x308], eax
je 0x51835f
push dword [edi + 0x30]
call fcn.0051c280
add esp, 4
cmp dword [ebp - 0x308], 0
jne 0x5183f1
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x5183a8
mov eax, dword [0x615408]
test eax, eax
je 0x51839e
push str.Failed_to_open_a_WinHttp_session__in_HttpSend
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x5183c2
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x5183c2
mov eax, dword [ecx]
push str.Failed_to_open_a_WinHttp_session__in_HttpSend
push str.HTTPConnector
push 0x5c0ec0
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [edi + 0xe0]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x240]
call fcn.00405410
jmp 0x518286
mov eax, dword [esi + 0x70]
mov ecx, 0x1bb
test eax, eax
push esi
cmove eax, ecx
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x300], eax
call fcn.00414d10
push 0
push str.https:__
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 3
call fcn.0043e160
cmp eax, 0xffffffff
je 0x518475
push str.https:__
lea ecx, [ebp - 0x338]
call fcn.00413890
push 0xffffffffffffffff
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x258]
push dword [eax + 0x10]
lea eax, [ebp - 0x2a8]
push eax
call fcn.0041da20
push eax
lea ecx, [ebp - 0x258]
call fcn.00413810
lea ecx, [ebp - 0x2a8]
call fcn.004137d0
lea ecx, [ebp - 0x338]
jmp 0x5184d4
push 0
push str.http:__
lea ecx, [ebp - 0x258]
call fcn.0043e160
cmp eax, 0xffffffff
je 0x5184dd
push str.http:__
lea ecx, [ebp - 0x2a8]
call fcn.00413890
push 0xffffffffffffffff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x258]
push dword [eax + 0x10]
lea eax, [ebp - 0x338]
push eax
call fcn.0041da20
push eax
lea ecx, [ebp - 0x258]
call fcn.00413810
lea ecx, [ebp - 0x338]
call fcn.004137d0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 3
call fcn.004137d0
cmp dword [ebp - 0x244], 8
lea eax, [ebp - 0x258]
mov esi, dword [ebp - 0x308]
cmovae eax, dword [ebp - 0x258]
push 0
push dword [ebp - 0x300]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [ebp - 0x310], edx
test edx, edx
jne 0x5185ae
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x518553
mov eax, dword [0x615408]
test eax, eax
je 0x518549
push str.Failed_to_connect_to_server__in_HttpSend
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x51856d
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x51856d
mov eax, dword [ecx]
push str.Failed_to_connect_to_server__in_HttpSend
push str.HTTPConnector
push 0x5c0ec0
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [edi + 0xe0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x258]
call fcn.004137d0
lea ecx, [ebp - 0x240]
call fcn.00405410
jmp 0x518286
xor eax, eax
mov ecx, 0x800000
cmp dword [ebp - 0x300], 0x1bb
cmove eax, ecx
cmp dword [ebx + 0x14], 8
jb 0x5185ca
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x21c]
cmp dword [ecx + 0x14], 8
jb 0x5185d8
mov ecx, dword [ecx]
push eax
push 0
push 0
push 0
push ebx
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x30c], esi
test esi, esi
jne 0x51869e
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x518634
mov eax, dword [0x615408]
test eax, eax
je 0x51862a
push str.Failed_to_open_http_request__in_HttpSend
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x51864e
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x51864e
mov eax, dword [ecx]
push str.Failed_to_open_http_request__in_HttpSend
push str.HTTPConnector
push 0x5c0ec0
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x308]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call esi
push dword [ebp - 0x310]
call esi
push dword [edi + 0xe0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x258]
call fcn.004137d0
lea ecx, [ebp - 0x240]
call fcn.00405410
jmp 0x518286
mov eax, dword [ebp - 0x31c]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [eax + 0x6c]
test eax, eax
jle 0x51875f
imul eax, eax, 0x3e8
push eax
push 0x7530
push 0xea60
push 0x1388
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x51875f
mov eax, dword [edi + 0x30]
test eax, eax
je 0x5186fc
mov esi, dword [eax]
call ebx
push eax
push str.Failed_in_setting_timeout_for_network_call__error_received__d
push str.HTTPConnector
push 0x5c0ec0
push 0x32
push dword [edi + 0x30]
jmp 0x518753
cmp dword [0x615408], 0
je 0x51872e
call ebx
push eax
push str.Failed_in_setting_timeout_for_network_call__error_received__d
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call dword [0x615408]
add esp, 0x1c
jmp 0x51875f
mov eax, dword [0x61540c]
test eax, eax
je 0x51875f
mov esi, dword [eax]
call ebx
push eax
push str.Failed_in_setting_timeout_for_network_call__error_received__d
push str.HTTPConnector
push 0x5c0ec0
push 0x32
push dword [0x61540c]
call dword [esi + 0x34]
mov esi, dword [ebp - 0x30c]
add esp, 0x18
mov edx, dword [ebp - 0x31c]
mov ecx, esi
call fcn.00516710
push 0
push 0x17f0300
push 0x517900
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x51880e
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x5187c4
mov eax, dword [0x615408]
test eax, eax
je 0x5187ba
push str.Failed_in_setting_status_callback_in_HttpSend
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x5187de
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x5187de
mov eax, dword [ecx]
push str.Failed_in_setting_status_callback_in_HttpSend
push str.HTTPConnector
push 0x5c0ec0
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
call ebx
push dword [ebp - 0x308]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x30c]
jmp 0x518675
push 0x50
call fcn.0055f301
add esp, 4
mov dword [ebp - 0x274], eax
mov ecx, eax
call fcn.00516af0
push 0
push 0
push 0
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [ebx + 0x10], eax
cmp dword [edi + 0x10], 0
sete al
test al, al
jne 0x5189d1
cmp dword [ebp + 0x14], 0
je 0x5189d1
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x51888d
mov eax, dword [0x615408]
test eax, eax
je 0x518883
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x5188a7
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x5188a7
mov eax, dword [ecx]
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push str.HTTPConnector
push 0x5c0ec0
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
push 4
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 2
push eax
push 0x4d
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [edi + 0x2c], 8
lea eax, [edi + 0x18]
jb 0x5188ce
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x5188d8
mov ecx, dword [edi]
jmp 0x5188da
mov ecx, edi
push 0
push eax
push ecx
push dword [ebp + 0x14]
push 1
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
jne 0x5189cb
mov esi, dword [edi + 0x30]
test esi, esi
je 0x518919
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi]
call eax
push eax
push str.Failed_in_setting_proxycredentials_in_HttpSend_error:_d
push str.HTTPConnector
push 0x5c0ec0
push 0x32
push dword [edi + 0x30]
jmp 0x51897b
cmp dword [0x615408], 0
je 0x518950
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
call eax
push eax
push str.Failed_in_setting_proxycredentials_in_HttpSend_error:_d
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call dword [0x615408]
add esp, 0x1c
jmp 0x518981
mov esi, dword [0x61540c]
test esi, esi
je 0x518981
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi]
call eax
push eax
push str.Failed_in_setting_proxycredentials_in_HttpSend_error:_d
push str.HTTPConnector
push 0x5c0ec0
push 0x32
push dword [0x61540c]
call dword [esi + 0x34]
add esp, 0x18
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x308]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x30c]
call esi
push dword [edi + 0xe0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ecx
mov ecx, ebx
call fcn.00517eb0
jmp 0x518593
mov byte [ebx + 0x34], 1
jmp 0x5189ed
push 4
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 1
push eax
push 0x4d
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x30], 0xffffffff
mov eax, dword [edi + 0x30]
push 0x5c81a0
push dword [ebp - 0x21c]
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0xe4]
mov dword [ebx + 0x4c], eax
call fcn.0041f7a0
add esp, 8
push ebx
test al, al
je 0x518a3e
push 0
push 0
push 0
jmp 0x518a5b
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x240]
cmp dword [ebp - 0x22c], 0x10
push eax
cmovae ecx, dword [ebp - 0x240]
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x518ac9
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x518aaa
mov eax, dword [0x615408]
test eax, eax
je 0x518a9c
push str.Failed_in_making_http_request__in_HttpSend
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
jmp 0x51897e
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x518981
mov eax, dword [ecx]
push str.Failed_in_making_http_request__in_HttpSend
push str.HTTPConnector
push 0x5c0ec0
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
jmp 0x518981
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x218], eax
mov eax, dword [edi + 0xe0]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x31c]
mov eax, dword [eax + 0x6c]
add eax, 5
imul eax, eax, 0x3e8
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
push 0
push 0xffffffffffffffff
push 0
push esi
mov dword [ebp - 0x274], eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov ecx, dword [ebx + 0x38]
cmp ecx, 0xbe
jne 0x518db9
cmp dword [edi + 0x10], 0
sete al
test al, al
jne 0x518db9
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x518b6f
mov eax, dword [0x615408]
test eax, eax
je 0x518b65
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x518b89
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x518b89
mov eax, dword [ecx]
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push str.HTTPConnector
push 0x5c0ec0
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
jne 0x518c5f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [edi + 0xe0]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call esi
push dword [ebx + 0x10]
call esi
push dword [ebp - 0x308]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x30c]
call esi
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x518c3a
mov eax, dword [0x615408]
test eax, eax
je 0x518c2c
push dword [edi + 0xdc]
push str.Error_occured_while_fetching_proxy_authentication_type__d
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x1c
jmp 0x518593
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x518593
push dword [edi + 0xdc]
mov eax, dword [ecx]
push str.Error_occured_while_fetching_proxy_authentication_type__d
push str.HTTPConnector
push 0x5c0ec0
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
jmp 0x518593
mov ecx, dword [ebp - 0x220]
call fcn.00517f90
push dword [edi + 0xe0]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x21c], eax
call esi
push dword [ebx + 0x10]
call esi
push dword [ebp - 0x308]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x30c]
call esi
cmp dword [edi + 0x30], 0
mov esi, dword [ebp - 0x21c]
je 0x518ccd
mov edx, esi
lea ecx, [ebp - 0x338]
call fcn.00517ed0
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 8
jb 0x518cc8
mov edx, dword [edx]
mov eax, dword [edi + 0x30]
jmp 0x518d3f
cmp dword [0x615408], 0
je 0x518d16
mov edx, esi
lea ecx, [ebp - 0x338]
call fcn.00517ed0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x518cef
mov eax, dword [eax]
push eax
push str.Proxy_Authentication_type:__s
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call dword [0x615408]
add esp, 0x1c
jmp 0x518d5a
cmp dword [0x61540c], 0
je 0x518d69
mov edx, esi
lea ecx, [ebp - 0x338]
call fcn.00517ed0
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 8
jb 0x518d3a
mov edx, dword [edx]
mov eax, dword [0x61540c]
mov ecx, dword [eax]
push edx
push str.Proxy_Authentication_type:__s
push str.HTTPConnector
push 0x5c0ec0
push 0x1e
push eax
call dword [ecx + 0x34]
add esp, 0x18
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 3
call fcn.004137d0
mov edx, dword [ebp - 0x318]
mov ecx, edi
push esi
push edx
push dword [ebp - 0x320]
push dword [ebp - 0x31c]
call fcn.005180f0
lea ecx, [ebp - 0x258]
mov esi, eax
call fcn.004137d0
lea ecx, [ebp - 0x240]
call fcn.00405410
lea ecx, [ebp - 0x270]
call fcn.00405410
lea ecx, [ebp - 0x290]
call fcn.004137d0
mov eax, esi
jmp 0x5198da
cmp ecx, 0x191
jne 0x519076
cmp dword [edi + 0xf8], 0
sete al
test al, al
jne 0x519076
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x518e13
mov eax, dword [0x615408]
test eax, eax
je 0x518e09
push str.Resending_request_with_user_credentials
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x518e2d
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x518e2d
mov eax, dword [ecx]
push str.Resending_request_with_user_credentials
push str.HTTPConnector
push 0x5c0ec0
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
jne 0x518e96
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [edi + 0xe0]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call esi
push dword [ebx + 0x10]
call esi
push dword [ebp - 0x308]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x30c]
call esi
jmp 0x518593
mov ecx, dword [ebp - 0x220]
call fcn.00517f90
cmp dword [edi + 0x30], 0
mov dword [ebp - 0x340], eax
je 0x518ecd
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.00517ed0
mov edx, eax
mov byte [ebp - 4], 9
cmp dword [edx + 0x14], 8
jb 0x518ec8
mov edx, dword [edx]
mov eax, dword [edi + 0x30]
jmp 0x518f3f
cmp dword [0x615408], 0
je 0x518f16
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.00517ed0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x518eef
mov eax, dword [eax]
push eax
push str.Proxy_Authentication_type:__s
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call dword [0x615408]
add esp, 0x1c
jmp 0x518f5a
cmp dword [0x61540c], 0
je 0x518f69
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.00517ed0
mov edx, eax
mov byte [ebp - 4], 0xb
cmp dword [edx + 0x14], 8
jb 0x518f3a
mov edx, dword [edx]
mov eax, dword [0x61540c]
mov ecx, dword [eax]
push edx
push str.Proxy_Authentication_type:__s
push str.HTTPConnector
push 0x5c0ec0
push 0x1e
push eax
call dword [ecx + 0x34]
add esp, 0x18
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 3
call fcn.004137d0
push 4
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x2cc], 2
push eax
push 0x4d
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [edi + 0x114], 8
lea eax, [edi + 0x100]
jb 0x518f96
mov eax, dword [eax]
cmp dword [edi + 0xfc], 8
lea ecx, [edi + 0xe8]
jb 0x518fa7
mov ecx, dword [ecx]
push 0
push eax
push ecx
push dword [ebp - 0x340]
push dword [ebp - 0x228]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x518e4d
push 0
push 0x17f0000
push 0x517900
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
je 0x518e4d
push 0x5c81a0
push dword [ebp - 0x21c]
call fcn.0041f7a0
add esp, 8
test al, al
jne 0x519030
push str.DELETE
push dword [ebp - 0x21c]
call fcn.0041f7a0
add esp, 8
test al, al
jne 0x519030
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x240]
cmp dword [ebp - 0x22c], 0x10
push ebx
cmovae ecx, dword [ebp - 0x240]
push eax
push eax
push ecx
jmp 0x519037
push ebx
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x518e4d
mov eax, dword [ebp - 0x31c]
imul eax, dword [eax + 0x6c], 0x3e8
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
push 0
push 0xffffffffffffffff
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
xor eax, eax
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
push eax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [ebx + 0x3c], 0
mov edx, dword [ebx + 0x38]
mov ecx, dword [edi + 0x30]
setne al
mov byte [edi + 0x118], al
mov eax, dword [ebx + 0x40]
mov dword [edi + 0xdc], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x220], edx
mov dword [edi + 0x11c], eax
test ecx, ecx
jne 0x51912f
mov eax, dword [0x615408]
test eax, eax
je 0x519125
push edx
push dword [ebp - 0x224]
push str.The_http_request_returned_HTTP_Status:_d_HttpCommunicator_error:_d
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x20
jmp 0x519150
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x519156
mov eax, dword [ecx]
push edx
push dword [ebp - 0x224]
push str.The_http_request_returned_HTTP_Status:_d_HttpCommunicator_error:_d
push str.HTTPConnector
push 0x5c0ec0
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x1c
mov ecx, dword [0x61540c]
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x519201
cmp eax, 0x102
je 0x519179
cmp eax, 1
jne 0x519201
mov dword [ebx + 0x38], eax
jmp 0x519180
mov dword [ebx + 0x38], 2
xor eax, eax
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
push ecx
lea edx, [ebp - 0x2a8]
mov byte [ebp - 4], 0xd
mov ecx, ebx
call fcn.005029a0
add esp, 4
mov dword [ebp - 0x2c4], 0x615580
push 0x615598
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x2a8]
push dword [ebp - 0x2c4]
push eax
push ecx
lea eax, [ebp - 0x278]
push eax
call fcn.0051a290
push 0x615598
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea ecx, [ebp - 0x2a8]
call fcn.004137d0
mov ecx, dword [0x61540c]
mov dword [ebp - 0x2d0], 0xf
mov dword [ebp - 0x2d4], 0
mov byte [ebp - 0x2e4], 0
mov byte [ebp - 4], 0xf
mov eax, dword [ebx + 0x38]
cmp eax, 2
je 0x519327
cmp eax, 1
je 0x519327
mov eax, dword [ebx]
test eax, eax
je 0x519327
cmp dword [ebx + 0xc], 1
jne 0x519327
push dword [ebx + 8]
lea ecx, [ebp - 0x2e4]
push eax
call fcn.00407b90
cmp dword [ebp - 0x2d0], 0x10
lea ecx, [ebp - 0x2e4]
mov edx, dword [ebp - 0x318]
cmovae ecx, dword [ebp - 0x2e4]
push 0
call fcn.005025d0
mov edx, dword [edi + 0x30]
add esp, 4
test edx, edx
je 0x5192ac
mov eax, dword [ebp - 0x318]
cmp dword [eax + 0x14], 8
jb 0x519293
mov ecx, dword [eax]
jmp 0x519295
mov ecx, eax
mov eax, dword [edx]
push ecx
push str.Response_Message____n__s
push str.HTTPConnector
push 0x5c0ec0
push 0x14
push edx
jmp 0x51931b
cmp dword [0x615408], 0
je 0x5192ea
mov eax, dword [ebp - 0x318]
cmp dword [eax + 0x14], 8
jb 0x5192c3
mov eax, dword [eax]
push eax
push str.Response_Message____n__s
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x14
call dword [0x615408]
add esp, 0x1c
jmp 0x519321
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x519327
mov eax, dword [ebp - 0x318]
cmp dword [eax + 0x14], 8
jb 0x519304
mov edx, dword [eax]
jmp 0x519306
mov edx, eax
mov eax, dword [ecx]
push edx
push str.Response_Message____n__s
push str.HTTPConnector
push 0x5c0ec0
push 0x14
push ecx
call dword [eax + 0x34]
add esp, 0x18
mov ecx, dword [0x61540c]
mov eax, dword [ebx + 0x38]
cmp eax, 2
je 0x51933e
cmp eax, 1
je 0x51933e
push ecx
mov ecx, ebx
call fcn.00517eb0
jmp 0x5193a4
mov edx, dword [edi + 0x30]
test edx, edx
je 0x51935b
mov eax, dword [edx]
push str.Send_timed_out___So_callback_will_free_the_memory
push str.HTTPConnector
push 0x5c0ec0
push 0x14
push edx
jmp 0x51939e
mov eax, dword [0x615408]
test eax, eax
je 0x519386
push str.Send_timed_out___So_callback_will_free_the_memory
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x14
call eax
add esp, 0x18
jmp 0x5193a4
test ecx, ecx
je 0x5193a4
mov eax, dword [ecx]
push str.Send_timed_out___So_callback_will_free_the_memory
push str.HTTPConnector
push 0x5c0ec0
push 0x14
push ecx
call dword [eax + 0x34]
add esp, 0x14
push 0
lea eax, [ebp - 0x304]
push eax
push 0
push 0
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x51949c
call ebx
cmp eax, 0x7a
jne 0x51951c
mov eax, dword [ebp - 0x304]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055f6c6
add esp, 4
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x304]
push 0
push ecx
push eax
push 0
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x51947c
call ebx
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x308]
call esi
mov esi, dword [ebp - 0x21c]
push esi
call fcn.0055eec5
mov ecx, dword [edi + 0x30]
add esp, 4
test ecx, ecx
je 0x519452
mov eax, dword [ecx]
push str.Failed_in_quering_WinHttpHeaders_with_available_memory
push ecx
call dword [eax + 4]
add esp, 8
call ebx
lea ecx, [ebp - 0x2e4]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call fcn.00405410
lea ecx, [ebp - 0x2c0]
call fcn.004137d0
jmp 0x518593
mov esi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x2c0]
push esi
call fcn.00413710
push esi
call fcn.0055eec5
add esp, 4
jmp 0x51951c
mov esi, dword [edi + 0x30]
test esi, esi
je 0x5194be
mov esi, dword [esi]
call ebx
push eax
push str.Failed_in_quering_WinHttpHeaders_error:_d
push str.HTTPConnector
push 0x5c0ec0
push 0x28
push dword [edi + 0x30]
jmp 0x519516
cmp dword [0x615408], 0
je 0x5194f0
call ebx
push eax
push str.Failed_in_quering_WinHttpHeaders_error:_d
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x615408]
add esp, 0x1c
jmp 0x51951c
mov edx, dword [0x61540c]
test edx, edx
je 0x51951c
mov esi, dword [edx]
call ebx
push eax
push str.Failed_in_quering_WinHttpHeaders_error:_d
push str.HTTPConnector
push 0x5c0ec0
push 0x28
push dword [0x61540c]
call dword [esi + 0x34]
add esp, 0x18
mov esi, dword [ebp - 0x320]
test esi, esi
je 0x5195e3
cmp dword [ebp - 0x2b0], 0
sete al
test al, al
jne 0x5195e3
mov edx, dword [edi + 0x30]
test edx, edx
jne 0x51958e
mov ecx, dword [0x615408]
test ecx, ecx
je 0x519584
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
cmovae eax, dword [ebp - 0x2c0]
push eax
push str.Response_header_received_from_the_http_request__s
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0xa
call ecx
add esp, 0x1c
jmp 0x5195bd
mov edx, dword [0x61540c]
test edx, edx
je 0x5195bd
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
mov ecx, dword [edx]
cmovae eax, dword [ebp - 0x2c0]
push eax
push str.Response_header_received_from_the_http_request__s
push str.HTTPConnector
push 0x5c0ec0
push 0xa
push edx
call dword [ecx + 0x34]
add esp, 0x18
mov esi, dword [edi + 0x30]
lea eax, [ebp - 0x2c0]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00414d10
mov edx, esi
mov esi, dword [ebp - 0x320]
mov ecx, esi
call fcn.005174c0
add esp, 0x18
push str.Content_Encoding
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x21c], 0
call fcn.00413890
lea eax, [ebp - 0x2a8]
mov ecx, esi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00438680
lea ecx, [ebp - 0x2a8]
call fcn.004137d0
mov eax, dword [ebp - 0x21c]
cmp eax, dword [esi]
je 0x5196fc
push 0
push str.gzip
lea ecx, [eax + 0x28]
call fcn.0043e160
cmp eax, 0xffffffff
je 0x5196fc
xor eax, eax
mov dword [ebp - 0x2e8], 7
mov dword [ebp - 0x2ec], 0
mov word [ebp - 0x2fc], ax
lea edx, [ebp - 0x2fc]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2e4]
call fcn.00503400
test al, al
je 0x519697
mov eax, dword [ebp - 0x318]
lea ecx, [ebp - 0x2fc]
cmp eax, ecx
je 0x5196ed
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00414130
jmp 0x5196ed
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x5196d3
mov eax, dword [0x615408]
test eax, eax
je 0x5196c9
push str.Some_error_occured_in_unzip
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call eax
add esp, 0x18
jmp 0x5196ed
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x5196ed
mov eax, dword [ecx]
push str.Some_error_occured_in_unzip
push str.HTTPConnector
push 0x5c0ec0
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x14
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 0xf
call fcn.004137d0
cmp dword [ebp - 0x220], 0
jne 0x51980b
mov eax, dword [ebp - 0x31c]
cmp byte [eax + 0x75], 0
je 0x51980b
cmp dword [ebp - 0x300], 0x1bb
jne 0x51980b
lea eax, [ebp - 0x274]
mov dword [ebp - 0x300], 0
push eax
lea eax, [ebp - 0x300]
mov dword [ebp - 0x274], 4
push eax
push 0x4e
push dword [ebp - 0x30c]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
jne 0x519764
call ebx
jmp 0x51980b
mov eax, dword [ebp - 0x300]
mov esi, dword [sym.imp.CRYPT32.dll_CertGetIssuerCertificateFromStore]
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push ecx
push 0
push eax
push dword [eax + 0x10]
mov ebx, eax
call esi
test eax, eax
jne 0x519770
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], eax
mov word [ebp - 0x2a8], ax
lea edx, [ebp - 0x2a8]
mov byte [ebp - 4], 0x11
mov ecx, ebx
call fcn.00525cc0
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x33c]
call fcn.0051a0a0
add esp, 4
mov ecx, dword [ebp - 0x320]
push eax
mov byte [ebp - 4], 0x12
call fcn.0051a6a0
mov ecx, dword [ebp - 0x320]
push eax
add eax, 0x10
push eax
push 0
lea eax, [ebp - 0x2c8]
push eax
call fcn.00424ae0
lea ecx, [ebp - 0x33c]
call fcn.00519900
lea ecx, [ebp - 0x2a8]
call fcn.004137d0
push dword [edi + 0xe0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x30c]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x308]
call esi
lea ecx, [ebp - 0x2e4]
call fcn.00405410
lea ecx, [ebp - 0x2c0]
call fcn.004137d0
lea ecx, [ebp - 0x258]
call fcn.004137d0
lea ecx, [ebp - 0x240]
call fcn.00405410
lea ecx, [ebp - 0x270]
call fcn.00405410
lea ecx, [ebp - 0x290]
call fcn.004137d0
mov eax, dword [ebp - 0x220]
jmp 0x5198da
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x5198bb
mov eax, dword [0x615408]
test eax, eax
je 0x5198b1
push str.Invalid_arguments_to_SendHTTPRequest
push 0x5c0ec0
push 0x5c0ec0
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x5198d5
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x5198d5
mov eax, dword [ecx]
push str.Invalid_arguments_to_SendHTTPRequest
push str.HTTPConnector
push 0x5c0ec0
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
mov eax, 4
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.0055eeb4
mov esp, ebp
pop ebp
ret 0x10