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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7331
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x67d070]
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 - 0x314], ecx
sete al
mov dword [ebp - 0x31c], edx
test al, al
jne 0x4c5720
cmp dword [ecx + 0x28], 0
lea ebx, [ecx + 0x18]
sete al
test al, al
jne 0x4c5720
cmp dword [ecx + 0x40], 0
lea eax, [ecx + 0x30]
mov dword [ebp - 0x21c], eax
sete al
test al, al
jne 0x4c5720
push ecx
mov ecx, edi
call fcn.004c2330
lea esi, [edi + 0xc0]
mov ecx, esi
call fcn.0049f710
push str.CancelPort
lea ecx, [ebp - 0x290]
mov byte [edi + 0x118], 0
call fcn.00406e60
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x290]
mov dword [ebp - 4], 0
call fcn.00408dc0
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 - 0x31c]
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4c4043
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 - 0x314]
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x4c4072
mov ecx, dword [esi]
jmp 0x4c4074
mov ecx, esi
push 0
lea edx, [ebp - 0x270]
call fcn.0049ef40
add esp, 4
test al, al
jne 0x4c40fe
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x4c40c4
mov eax, dword [0x689958]
test eax, eax
je 0x4c40ba
push str.Failed_in_multibyte_to_wide_conversion__in_HttpSend
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x4c40de
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c40de
mov eax, dword [ecx]
push str.Failed_in_multibyte_to_wide_conversion__in_HttpSend
push str.HTTPConnector
push 0x622628
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
lea ecx, [ebp - 0x270]
call fcn.00406ec0
lea ecx, [ebp - 0x290]
call fcn.00406e20
mov eax, 5
jmp 0x4c577b
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 0x4c4128
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x240]
call fcn.0049ef40
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.004c2a00
push dword [edi + 0x30]
call fcn.004bc130
add esp, 0x10
mov byte [ebp - 0x315], al
cmp word [ebp - 0x210], 0
push 0x10000000
push 0
jne 0x4c4189
push 0
push 0
jmp 0x4c4192
lea eax, [ebp - 0x210]
push eax
push 3
push 0x644564
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp byte [ebp - 0x315], 0
mov dword [ebp - 0x308], eax
je 0x4c41b7
push dword [edi + 0x30]
call fcn.004bc790
add esp, 4
cmp dword [ebp - 0x308], 0
jne 0x4c4249
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x4c4200
mov eax, dword [0x689958]
test eax, eax
je 0x4c41f6
push str.Failed_to_open_a_WinHttp_session__in_HttpSend
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x4c421a
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c421a
mov eax, dword [ecx]
push str.Failed_to_open_a_WinHttp_session__in_HttpSend
push str.HTTPConnector
push 0x622628
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.00406ec0
jmp 0x4c40de
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.0040ac30
push 0
push str.https:__
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 3
call fcn.00450ec0
cmp eax, 0xffffffff
je 0x4c42cd
push str.https:__
lea ecx, [ebp - 0x338]
call fcn.00406e60
push 0xffffffffffffffff
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x258]
push dword [eax + 0x10]
lea eax, [ebp - 0x2a8]
push eax
call fcn.0040a860
push eax
lea ecx, [ebp - 0x258]
call fcn.0040a8a0
lea ecx, [ebp - 0x2a8]
call fcn.00406e20
lea ecx, [ebp - 0x338]
jmp 0x4c432c
push 0
push str.http:__
lea ecx, [ebp - 0x258]
call fcn.00450ec0
cmp eax, 0xffffffff
je 0x4c4335
push str.http:__
lea ecx, [ebp - 0x2a8]
call fcn.00406e60
push 0xffffffffffffffff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x258]
push dword [eax + 0x10]
lea eax, [ebp - 0x338]
push eax
call fcn.0040a860
push eax
lea ecx, [ebp - 0x258]
call fcn.0040a8a0
lea ecx, [ebp - 0x338]
call fcn.00406e20
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 3
call fcn.00406e20
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 0x4c4406
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x4c43ab
mov eax, dword [0x689958]
test eax, eax
je 0x4c43a1
push str.Failed_to_connect_to_server__in_HttpSend
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x4c43c5
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c43c5
mov eax, dword [ecx]
push str.Failed_to_connect_to_server__in_HttpSend
push str.HTTPConnector
push 0x622628
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.00406e20
lea ecx, [ebp - 0x240]
call fcn.00406ec0
jmp 0x4c40de
xor eax, eax
mov ecx, 0x800000
cmp dword [ebp - 0x300], 0x1bb
cmove eax, ecx
cmp dword [ebx + 0x14], 8
jb 0x4c4422
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x21c]
cmp dword [ecx + 0x14], 8
jb 0x4c4430
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 0x4c44f6
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x4c448c
mov eax, dword [0x689958]
test eax, eax
je 0x4c4482
push str.Failed_to_open_http_request__in_HttpSend
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x4c44a6
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c44a6
mov eax, dword [ecx]
push str.Failed_to_open_http_request__in_HttpSend
push str.HTTPConnector
push 0x622628
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.00406e20
lea ecx, [ebp - 0x240]
call fcn.00406ec0
jmp 0x4c40de
mov eax, dword [ebp - 0x314]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, dword [eax + 0x6c]
test eax, eax
jle 0x4c45b7
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 0x4c45b7
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4c4554
mov esi, dword [eax]
call ebx
push eax
push str.Failed_in_setting_timeout_for_network_call__error_received__d
push str.HTTPConnector
push 0x622628
push 0x32
push dword [edi + 0x30]
jmp 0x4c45ab
cmp dword [0x689958], 0
je 0x4c4586
call ebx
push eax
push str.Failed_in_setting_timeout_for_network_call__error_received__d
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call dword [0x689958]
add esp, 0x1c
jmp 0x4c45b7
mov eax, dword [0x68995c]
test eax, eax
je 0x4c45b7
mov esi, dword [eax]
call ebx
push eax
push str.Failed_in_setting_timeout_for_network_call__error_received__d
push str.HTTPConnector
push 0x622628
push 0x32
push dword [0x68995c]
call dword [esi + 0x34]
mov esi, dword [ebp - 0x30c]
add esp, 0x18
mov edx, dword [ebp - 0x314]
mov ecx, esi
call fcn.004c1f50
push 0
push 0x17f0300
push 0x4c3750
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x4c4666
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x4c461c
mov eax, dword [0x689958]
test eax, eax
je 0x4c4612
push str.Failed_in_setting_status_callback_in_HttpSend
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x4c4636
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c4636
mov eax, dword [ecx]
push str.Failed_in_setting_status_callback_in_HttpSend
push str.HTTPConnector
push 0x622628
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 0x4c44cd
push 0x50
call fcn.00599c81
add esp, 4
mov dword [ebp - 0x274], eax
mov ecx, eax
call fcn.004c28e0
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 0x4c4829
cmp dword [ebp + 0x14], 0
je 0x4c4829
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x4c46e5
mov eax, dword [0x689958]
test eax, eax
je 0x4c46db
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x4c46ff
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c46ff
mov eax, dword [ecx]
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push str.HTTPConnector
push 0x622628
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 0x4c4726
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x4c4730
mov ecx, dword [edi]
jmp 0x4c4732
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 0x4c4823
mov esi, dword [edi + 0x30]
test esi, esi
je 0x4c4771
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 0x622628
push 0x32
push dword [edi + 0x30]
jmp 0x4c47d3
cmp dword [0x689958], 0
je 0x4c47a8
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
call eax
push eax
push str.Failed_in_setting_proxycredentials_in_HttpSend_error:_d
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call dword [0x689958]
add esp, 0x1c
jmp 0x4c47d9
mov esi, dword [0x68995c]
test esi, esi
je 0x4c47d9
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 0x622628
push 0x32
push dword [0x68995c]
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.004c3d00
jmp 0x4c43eb
mov byte [ebx + 0x34], 1
jmp 0x4c4845
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 0x62cc4c
push dword [ebp - 0x21c]
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0xe4]
mov dword [ebx + 0x4c], eax
call fcn.0042a970
add esp, 8
push ebx
test al, al
je 0x4c4896
push 0
push 0
push 0
jmp 0x4c48b3
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 0x4c4921
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x4c4902
mov eax, dword [0x689958]
test eax, eax
je 0x4c48f4
push str.Failed_in_making_http_request__in_HttpSend
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
jmp 0x4c47d6
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c47d9
mov eax, dword [ecx]
push str.Failed_in_making_http_request__in_HttpSend
push str.HTTPConnector
push 0x622628
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
jmp 0x4c47d9
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x218], eax
mov eax, dword [edi + 0xe0]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x314]
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 0x4c4c11
cmp dword [edi + 0x10], 0
sete al
test al, al
jne 0x4c4c11
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x4c49c7
mov eax, dword [0x689958]
test eax, eax
je 0x4c49bd
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x4c49e1
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c49e1
mov eax, dword [ecx]
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push str.HTTPConnector
push 0x622628
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 0x4c4ab7
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 0x4c4a92
mov eax, dword [0x689958]
test eax, eax
je 0x4c4a84
push dword [edi + 0xdc]
push str.Error_occured_while_fetching_proxy_authentication_type__d
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x1c
jmp 0x4c43eb
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c43eb
push dword [edi + 0xdc]
mov eax, dword [ecx]
push str.Error_occured_while_fetching_proxy_authentication_type__d
push str.HTTPConnector
push 0x622628
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
jmp 0x4c43eb
mov ecx, dword [ebp - 0x220]
call fcn.004c3de0
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 0x4c4b25
mov edx, esi
lea ecx, [ebp - 0x338]
call fcn.004c3d20
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 8
jb 0x4c4b20
mov edx, dword [edx]
mov eax, dword [edi + 0x30]
jmp 0x4c4b97
cmp dword [0x689958], 0
je 0x4c4b6e
mov edx, esi
lea ecx, [ebp - 0x338]
call fcn.004c3d20
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4c4b47
mov eax, dword [eax]
push eax
push str.Proxy_Authentication_type:__s
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call dword [0x689958]
add esp, 0x1c
jmp 0x4c4bb2
cmp dword [0x68995c], 0
je 0x4c4bc1
mov edx, esi
lea ecx, [ebp - 0x338]
call fcn.004c3d20
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 8
jb 0x4c4b92
mov edx, dword [edx]
mov eax, dword [0x68995c]
mov ecx, dword [eax]
push edx
push str.Proxy_Authentication_type:__s
push str.HTTPConnector
push 0x622628
push 0x1e
push eax
call dword [ecx + 0x34]
add esp, 0x18
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 3
call fcn.00406e20
mov edx, dword [ebp - 0x31c]
mov ecx, edi
push esi
push edx
push dword [ebp - 0x320]
push dword [ebp - 0x314]
call fcn.004c3f40
lea ecx, [ebp - 0x258]
mov esi, eax
call fcn.00406e20
lea ecx, [ebp - 0x240]
call fcn.00406ec0
lea ecx, [ebp - 0x270]
call fcn.00406ec0
lea ecx, [ebp - 0x290]
call fcn.00406e20
mov eax, esi
jmp 0x4c577b
cmp ecx, 0x191
jne 0x4c4ece
cmp dword [edi + 0xf8], 0
sete al
test al, al
jne 0x4c4ece
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x4c4c6b
mov eax, dword [0x689958]
test eax, eax
je 0x4c4c61
push str.Resending_request_with_user_credentials
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x4c4c85
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c4c85
mov eax, dword [ecx]
push str.Resending_request_with_user_credentials
push str.HTTPConnector
push 0x622628
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 0x4c4cee
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 0x4c43eb
mov ecx, dword [ebp - 0x220]
call fcn.004c3de0
cmp dword [edi + 0x30], 0
mov dword [ebp - 0x340], eax
je 0x4c4d25
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.004c3d20
mov edx, eax
mov byte [ebp - 4], 9
cmp dword [edx + 0x14], 8
jb 0x4c4d20
mov edx, dword [edx]
mov eax, dword [edi + 0x30]
jmp 0x4c4d97
cmp dword [0x689958], 0
je 0x4c4d6e
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.004c3d20
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x4c4d47
mov eax, dword [eax]
push eax
push str.Proxy_Authentication_type:__s
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call dword [0x689958]
add esp, 0x1c
jmp 0x4c4db2
cmp dword [0x68995c], 0
je 0x4c4dc1
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.004c3d20
mov edx, eax
mov byte [ebp - 4], 0xb
cmp dword [edx + 0x14], 8
jb 0x4c4d92
mov edx, dword [edx]
mov eax, dword [0x68995c]
mov ecx, dword [eax]
push edx
push str.Proxy_Authentication_type:__s
push str.HTTPConnector
push 0x622628
push 0x1e
push eax
call dword [ecx + 0x34]
add esp, 0x18
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 3
call fcn.00406e20
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 0x4c4dee
mov eax, dword [eax]
cmp dword [edi + 0xfc], 8
lea ecx, [edi + 0xe8]
jb 0x4c4dff
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 0x4c4ca5
push 0
push 0x17f0000
push 0x4c3750
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
je 0x4c4ca5
push 0x62cc4c
push dword [ebp - 0x21c]
call fcn.0042a970
add esp, 8
test al, al
jne 0x4c4e88
push str.DELETE
push dword [ebp - 0x21c]
call fcn.0042a970
add esp, 8
test al, al
jne 0x4c4e88
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 0x4c4e8f
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 0x4c4ca5
mov eax, dword [ebp - 0x314]
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 0x4c4f87
mov eax, dword [0x689958]
test eax, eax
je 0x4c4f7d
push edx
push dword [ebp - 0x224]
push str.The_http_request_returned_HTTP_Status:_d_HttpCommunicator_error:_d
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x20
jmp 0x4c4fa8
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c4fae
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 0x622628
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x1c
mov ecx, dword [0x68995c]
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x4c5059
cmp eax, 0x102
je 0x4c4fd1
cmp eax, 1
jne 0x4c5059
mov dword [ebx + 0x38], eax
jmp 0x4c4fd8
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.0049f4c0
add esp, 4
mov dword [ebp - 0x2c4], 0x68bc88
push 0x68bca0
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.004c6130
push 0x68bca0
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea ecx, [ebp - 0x2a8]
call fcn.00406e20
mov ecx, dword [0x68995c]
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 0x4c517f
cmp eax, 1
je 0x4c517f
mov eax, dword [ebx]
test eax, eax
je 0x4c517f
cmp dword [ebx + 0xc], 1
jne 0x4c517f
push dword [ebx + 8]
lea ecx, [ebp - 0x2e4]
push eax
call fcn.00407200
cmp dword [ebp - 0x2d0], 0x10
lea ecx, [ebp - 0x2e4]
mov edx, dword [ebp - 0x31c]
cmovae ecx, dword [ebp - 0x2e4]
push 0
call fcn.0049f0f0
mov edx, dword [edi + 0x30]
add esp, 4
test edx, edx
je 0x4c5104
mov eax, dword [ebp - 0x31c]
cmp dword [eax + 0x14], 8
jb 0x4c50eb
mov ecx, dword [eax]
jmp 0x4c50ed
mov ecx, eax
mov eax, dword [edx]
push ecx
push str.Response_Message____n__s
push str.HTTPConnector
push 0x622628
push 0x14
push edx
jmp 0x4c5173
cmp dword [0x689958], 0
je 0x4c5142
mov eax, dword [ebp - 0x31c]
cmp dword [eax + 0x14], 8
jb 0x4c511b
mov eax, dword [eax]
push eax
push str.Response_Message____n__s
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x14
call dword [0x689958]
add esp, 0x1c
jmp 0x4c5179
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c517f
mov eax, dword [ebp - 0x31c]
cmp dword [eax + 0x14], 8
jb 0x4c515c
mov edx, dword [eax]
jmp 0x4c515e
mov edx, eax
mov eax, dword [ecx]
push edx
push str.Response_Message____n__s
push str.HTTPConnector
push 0x622628
push 0x14
push ecx
call dword [eax + 0x34]
add esp, 0x18
mov ecx, dword [0x68995c]
mov eax, dword [ebx + 0x38]
cmp eax, 2
je 0x4c5196
cmp eax, 1
je 0x4c5196
push ecx
mov ecx, ebx
call fcn.004c3d00
jmp 0x4c51fc
mov edx, dword [edi + 0x30]
test edx, edx
je 0x4c51b3
mov eax, dword [edx]
push str.Send_timed_out___So_callback_will_free_the_memory
push str.HTTPConnector
push 0x622628
push 0x14
push edx
jmp 0x4c51f6
mov eax, dword [0x689958]
test eax, eax
je 0x4c51de
push str.Send_timed_out___So_callback_will_free_the_memory
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x14
call eax
add esp, 0x18
jmp 0x4c51fc
test ecx, ecx
je 0x4c51fc
mov eax, dword [ecx]
push str.Send_timed_out___So_callback_will_free_the_memory
push str.HTTPConnector
push 0x622628
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]
test eax, eax
jne 0x4c5360
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x4c52ed
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.0059a123
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x304]
push 0
push eax
push ebx
push 0
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x4c52d2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x308]
call esi
push ebx
call fcn.00599f1f
mov ecx, dword [edi + 0x30]
add esp, 4
test ecx, ecx
je 0x4c52a4
mov eax, dword [ecx]
push str.Failed_in_quering_WinHttpHeaders_with_available_memory
push ecx
call dword [eax + 4]
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [ebp - 0x2e4]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call fcn.00406ec0
lea ecx, [ebp - 0x2c0]
call fcn.00406e20
jmp 0x4c43eb
push ebx
lea ecx, [ebp - 0x2c0]
call fcn.00407010
push ebx
call fcn.00599f1f
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [ebp - 0x320]
test esi, esi
je 0x4c5466
cmp dword [ebp - 0x2b0], 0
sete al
test al, al
jne 0x4c5466
mov edx, dword [edi + 0x30]
test edx, edx
jne 0x4c5411
mov ecx, dword [0x689958]
test ecx, ecx
je 0x4c5407
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 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0xa
call ecx
add esp, 0x1c
jmp 0x4c5440
mov esi, dword [edi + 0x30]
test esi, esi
je 0x4c5391
mov esi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebx
push eax
push str.Failed_in_quering_WinHttpHeaders_error:_d
push str.HTTPConnector
push 0x622628
push 0x28
push dword [edi + 0x30]
call dword [esi + 0x34]
add esp, 0x18
jmp 0x4c52ed
cmp dword [0x689958], 0
je 0x4c53cc
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebx
push eax
push str.Failed_in_quering_WinHttpHeaders_error:_d
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x689958]
add esp, 0x1c
jmp 0x4c52ed
mov edx, dword [0x68995c]
test edx, edx
je 0x4c52e7
mov esi, dword [edx]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebx
push eax
push str.Failed_in_quering_WinHttpHeaders_error:_d
push str.HTTPConnector
push 0x622628
push 0x28
push dword [0x68995c]
call dword [esi + 0x34]
add esp, 0x18
jmp 0x4c52ed
mov edx, dword [0x68995c]
test edx, edx
je 0x4c5440
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 0x622628
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.0040ac30
mov edx, esi
mov esi, dword [ebp - 0x320]
mov ecx, esi
call fcn.004c3310
add esp, 0x18
push str.Content_Encoding
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x21c], 0
call fcn.00406e60
lea eax, [ebp - 0x2a8]
mov ecx, esi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00439040
lea ecx, [ebp - 0x2a8]
call fcn.00406e20
mov eax, dword [ebp - 0x21c]
cmp eax, dword [esi]
je 0x4c557f
push 0
push str.gzip
lea ecx, [eax + 0x28]
call fcn.00450ec0
cmp eax, 0xffffffff
je 0x4c557f
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.004a0010
test al, al
je 0x4c551a
mov eax, dword [ebp - 0x31c]
lea ecx, [ebp - 0x2fc]
cmp eax, ecx
je 0x4c5570
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00407550
jmp 0x4c5570
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x4c5556
mov eax, dword [0x689958]
test eax, eax
je 0x4c554c
push str.Some_error_occured_in_unzip
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call eax
add esp, 0x18
jmp 0x4c5570
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c5570
mov eax, dword [ecx]
push str.Some_error_occured_in_unzip
push str.HTTPConnector
push 0x622628
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x14
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 0xf
call fcn.00406e20
cmp dword [ebp - 0x220], 0
jne 0x4c569d
mov eax, dword [ebp - 0x314]
cmp byte [eax + 0x75], 0
je 0x4c569d
cmp dword [ebp - 0x300], 0x1bb
jne 0x4c569d
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 0x4c55e7
call ebx
jmp 0x4c569d
mov eax, dword [ebp - 0x300]
mov esi, dword [sym.imp.CRYPT32.dll_CertGetIssuerCertificateFromStore]
nop dword [eax]
nop word [eax + eax]
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 0x4c5600
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.004d8200
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x33c]
call fcn.004c5f40
add esp, 4
mov esi, dword [ebp - 0x320]
mov ecx, esi
push eax
mov byte [ebp - 4], 0x12
call fcn.004c6540
push eax
add eax, 0x10
mov ecx, esi
push eax
push 0
lea eax, [ebp - 0x2c8]
push eax
call fcn.004316c0
lea ecx, [ebp - 0x33c]
call fcn.004c57a0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0xf
call fcn.00406e20
push ecx
push esi
push dword [ebp - 0x314]
mov ecx, edi
call fcn.004c26d0
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.00406ec0
lea ecx, [ebp - 0x2c0]
call fcn.00406e20
lea ecx, [ebp - 0x258]
call fcn.00406e20
lea ecx, [ebp - 0x240]
call fcn.00406ec0
lea ecx, [ebp - 0x270]
call fcn.00406ec0
lea ecx, [ebp - 0x290]
call fcn.00406e20
mov eax, dword [ebp - 0x220]
jmp 0x4c577b
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x4c575c
mov eax, dword [0x689958]
test eax, eax
je 0x4c5752
push str.Invalid_arguments_to_SendHTTPRequest
push 0x622628
push 0x622628
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x4c5776
mov ecx, dword [0x68995c]
test ecx, ecx
je 0x4c5776
mov eax, dword [ecx]
push str.Invalid_arguments_to_SendHTTPRequest
push str.HTTPConnector
push 0x622628
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.00599c70
mov esp, ebp
pop ebp
ret 0x10