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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cffa1
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x64a070]
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 0x52ec00
cmp dword [ecx + 0x28], 0
lea ebx, [ecx + 0x18]
sete al
test al, al
jne 0x52ec00
cmp dword [ecx + 0x40], 0
lea eax, [ecx + 0x30]
mov dword [ebp - 0x21c], eax
sete al
test al, al
jne 0x52ec00
push ecx
mov ecx, edi
call fcn.0052b800
lea esi, [edi + 0xc0]
mov ecx, esi
call fcn.0041e890
push str.CancelPort
lea ecx, [ebp - 0x290]
mov byte [edi + 0x118], 0
call fcn.00408810
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x290]
mov dword [ebp - 4], 0
call fcn.0040aa30
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 0x52d523
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 0x52d552
mov ecx, dword [esi]
jmp 0x52d554
mov ecx, esi
push 0
lea edx, [ebp - 0x270]
call fcn.00518330
add esp, 4
test al, al
jne 0x52d5de
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52d5a4
mov eax, dword [0x656c44]
test eax, eax
je 0x52d59a
push str.Failed_in_multibyte_to_wide_conversion__in_HttpSend
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x52d5be
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52d5be
mov eax, dword [ecx]
push str.Failed_in_multibyte_to_wide_conversion__in_HttpSend
push str.HTTPConnector
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
lea ecx, [ebp - 0x270]
call fcn.00408870
lea ecx, [ebp - 0x290]
call fcn.004087d0
mov eax, 5
jmp 0x52ec5b
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 0x52d608
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x240]
call fcn.00518330
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.0052bed0
push dword [edi + 0x30]
call fcn.00529ec0
add esp, 0x10
mov byte [ebp - 0x315], al
cmp word [ebp - 0x210], 0
push 0x10000000
push 0
jne 0x52d669
push 0
push 0
jmp 0x52d672
lea eax, [ebp - 0x210]
push eax
push 3
push 0x620934
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp byte [ebp - 0x315], 0
mov dword [ebp - 0x308], eax
je 0x52d697
push dword [edi + 0x30]
call fcn.0052a520
add esp, 4
cmp dword [ebp - 0x308], 0
jne 0x52d729
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52d6e0
mov eax, dword [0x656c44]
test eax, eax
je 0x52d6d6
push str.Failed_to_open_a_WinHttp_session__in_HttpSend
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x52d6fa
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52d6fa
mov eax, dword [ecx]
push str.Failed_to_open_a_WinHttp_session__in_HttpSend
push str.HTTPConnector
push 0x5f8398
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.00408870
jmp 0x52d5be
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.0040d5f0
push 0
push str.https:__
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 3
call fcn.00428600
cmp eax, 0xffffffff
je 0x52d7ad
push str.https:__
lea ecx, [ebp - 0x338]
call fcn.00408810
push 0xffffffffffffffff
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x258]
push dword [eax + 0x10]
lea eax, [ebp - 0x2a8]
push eax
call fcn.0040d270
push eax
lea ecx, [ebp - 0x258]
call fcn.0040d2b0
lea ecx, [ebp - 0x2a8]
call fcn.004087d0
lea ecx, [ebp - 0x338]
jmp 0x52d80c
push 0
push str.http:__
lea ecx, [ebp - 0x258]
call fcn.00428600
cmp eax, 0xffffffff
je 0x52d815
push str.http:__
lea ecx, [ebp - 0x2a8]
call fcn.00408810
push 0xffffffffffffffff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x258]
push dword [eax + 0x10]
lea eax, [ebp - 0x338]
push eax
call fcn.0040d270
push eax
lea ecx, [ebp - 0x258]
call fcn.0040d2b0
lea ecx, [ebp - 0x338]
call fcn.004087d0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 3
call fcn.004087d0
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 0x52d8e6
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52d88b
mov eax, dword [0x656c44]
test eax, eax
je 0x52d881
push str.Failed_to_connect_to_server__in_HttpSend
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x52d8a5
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52d8a5
mov eax, dword [ecx]
push str.Failed_to_connect_to_server__in_HttpSend
push str.HTTPConnector
push 0x5f8398
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.004087d0
lea ecx, [ebp - 0x240]
call fcn.00408870
jmp 0x52d5be
xor eax, eax
mov ecx, 0x800000
cmp dword [ebp - 0x300], 0x1bb
cmove eax, ecx
cmp dword [ebx + 0x14], 8
jb 0x52d902
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x21c]
cmp dword [ecx + 0x14], 8
jb 0x52d910
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 0x52d9d6
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52d96c
mov eax, dword [0x656c44]
test eax, eax
je 0x52d962
push str.Failed_to_open_http_request__in_HttpSend
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x52d986
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52d986
mov eax, dword [ecx]
push str.Failed_to_open_http_request__in_HttpSend
push str.HTTPConnector
push 0x5f8398
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.004087d0
lea ecx, [ebp - 0x240]
call fcn.00408870
jmp 0x52d5be
mov eax, dword [ebp - 0x314]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [eax + 0x6c]
test eax, eax
jle 0x52da97
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 0x52da97
mov eax, dword [edi + 0x30]
test eax, eax
je 0x52da34
mov esi, dword [eax]
call ebx
push eax
push str.Failed_in_setting_timeout_for_network_call__error_received__d
push str.HTTPConnector
push 0x5f8398
push 0x32
push dword [edi + 0x30]
jmp 0x52da8b
cmp dword [0x656c44], 0
je 0x52da66
call ebx
push eax
push str.Failed_in_setting_timeout_for_network_call__error_received__d
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call dword [0x656c44]
add esp, 0x1c
jmp 0x52da97
mov eax, dword [0x656c48]
test eax, eax
je 0x52da97
mov esi, dword [eax]
call ebx
push eax
push str.Failed_in_setting_timeout_for_network_call__error_received__d
push str.HTTPConnector
push 0x5f8398
push 0x32
push dword [0x656c48]
call dword [esi + 0x34]
mov esi, dword [ebp - 0x30c]
add esp, 0x18
mov edx, dword [ebp - 0x314]
mov ecx, esi
call fcn.0052b420
push 0
push 0x17f0300
push 0x52cc20
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x52db46
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52dafc
mov eax, dword [0x656c44]
test eax, eax
je 0x52daf2
push str.Failed_in_setting_status_callback_in_HttpSend
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x52db16
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52db16
mov eax, dword [ecx]
push str.Failed_in_setting_status_callback_in_HttpSend
push str.HTTPConnector
push 0x5f8398
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 0x52d9ad
push 0x50
call fcn.005765c3
add esp, 4
mov dword [ebp - 0x274], eax
mov ecx, eax
call fcn.0052bdb0
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 0x52dd09
cmp dword [ebp + 0x14], 0
je 0x52dd09
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52dbc5
mov eax, dword [0x656c44]
test eax, eax
je 0x52dbbb
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x52dbdf
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52dbdf
mov eax, dword [ecx]
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push str.HTTPConnector
push 0x5f8398
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 0x52dc06
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x52dc10
mov ecx, dword [edi]
jmp 0x52dc12
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 0x52dd03
mov esi, dword [edi + 0x30]
test esi, esi
je 0x52dc51
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 0x5f8398
push 0x32
push dword [edi + 0x30]
jmp 0x52dcb3
cmp dword [0x656c44], 0
je 0x52dc88
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push str.Failed_in_setting_proxycredentials_in_HttpSend_error:_d
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call dword [0x656c44]
add esp, 0x1c
jmp 0x52dcb9
mov esi, dword [0x656c48]
test esi, esi
je 0x52dcb9
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 0x5f8398
push 0x32
push dword [0x656c48]
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.0052d1e0
jmp 0x52d8cb
mov byte [ebx + 0x34], 1
jmp 0x52dd25
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 0x601684
push dword [ebp - 0x21c]
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0xe4]
mov dword [ebx + 0x4c], eax
call fcn.00423e40
add esp, 8
push ebx
test al, al
je 0x52dd76
push 0
push 0
push 0
jmp 0x52dd93
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 0x52de01
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52dde2
mov eax, dword [0x656c44]
test eax, eax
je 0x52ddd4
push str.Failed_in_making_http_request__in_HttpSend
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
jmp 0x52dcb6
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52dcb9
mov eax, dword [ecx]
push str.Failed_in_making_http_request__in_HttpSend
push str.HTTPConnector
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
jmp 0x52dcb9
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 0x52e0f1
cmp dword [edi + 0x10], 0
sete al
test al, al
jne 0x52e0f1
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52dea7
mov eax, dword [0x656c44]
test eax, eax
je 0x52de9d
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x52dec1
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52dec1
mov eax, dword [ecx]
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push str.HTTPConnector
push 0x5f8398
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 0x52df97
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 0x52df72
mov eax, dword [0x656c44]
test eax, eax
je 0x52df64
push dword [edi + 0xdc]
push str.Error_occured_while_fetching_proxy_authentication_type__d
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x1c
jmp 0x52d8cb
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52d8cb
push dword [edi + 0xdc]
mov eax, dword [ecx]
push str.Error_occured_while_fetching_proxy_authentication_type__d
push str.HTTPConnector
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
jmp 0x52d8cb
mov ecx, dword [ebp - 0x220]
call fcn.0052d2c0
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 0x52e005
mov edx, esi
lea ecx, [ebp - 0x338]
call fcn.0052d200
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 8
jb 0x52e000
mov edx, dword [edx]
mov eax, dword [edi + 0x30]
jmp 0x52e077
cmp dword [0x656c44], 0
je 0x52e04e
mov edx, esi
lea ecx, [ebp - 0x338]
call fcn.0052d200
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x52e027
mov eax, dword [eax]
push eax
push str.Proxy_Authentication_type:__s
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call dword [0x656c44]
add esp, 0x1c
jmp 0x52e092
cmp dword [0x656c48], 0
je 0x52e0a1
mov edx, esi
lea ecx, [ebp - 0x338]
call fcn.0052d200
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 8
jb 0x52e072
mov edx, dword [edx]
mov eax, dword [0x656c48]
mov ecx, dword [eax]
push edx
push str.Proxy_Authentication_type:__s
push str.HTTPConnector
push 0x5f8398
push 0x1e
push eax
call dword [ecx + 0x34]
add esp, 0x18
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 3
call fcn.004087d0
mov edx, dword [ebp - 0x31c]
mov ecx, edi
push esi
push edx
push dword [ebp - 0x320]
push dword [ebp - 0x314]
call fcn.0052d420
lea ecx, [ebp - 0x258]
mov esi, eax
call fcn.004087d0
lea ecx, [ebp - 0x240]
call fcn.00408870
lea ecx, [ebp - 0x270]
call fcn.00408870
lea ecx, [ebp - 0x290]
call fcn.004087d0
mov eax, esi
jmp 0x52ec5b
cmp ecx, 0x191
jne 0x52e3ae
cmp dword [edi + 0xf8], 0
sete al
test al, al
jne 0x52e3ae
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52e14b
mov eax, dword [0x656c44]
test eax, eax
je 0x52e141
push str.Resending_request_with_user_credentials
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x52e165
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52e165
mov eax, dword [ecx]
push str.Resending_request_with_user_credentials
push str.HTTPConnector
push 0x5f8398
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 0x52e1ce
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 0x52d8cb
mov ecx, dword [ebp - 0x220]
call fcn.0052d2c0
cmp dword [edi + 0x30], 0
mov dword [ebp - 0x340], eax
je 0x52e205
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.0052d200
mov edx, eax
mov byte [ebp - 4], 9
cmp dword [edx + 0x14], 8
jb 0x52e200
mov edx, dword [edx]
mov eax, dword [edi + 0x30]
jmp 0x52e277
cmp dword [0x656c44], 0
je 0x52e24e
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.0052d200
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x52e227
mov eax, dword [eax]
push eax
push str.Proxy_Authentication_type:__s
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call dword [0x656c44]
add esp, 0x1c
jmp 0x52e292
cmp dword [0x656c48], 0
je 0x52e2a1
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.0052d200
mov edx, eax
mov byte [ebp - 4], 0xb
cmp dword [edx + 0x14], 8
jb 0x52e272
mov edx, dword [edx]
mov eax, dword [0x656c48]
mov ecx, dword [eax]
push edx
push str.Proxy_Authentication_type:__s
push str.HTTPConnector
push 0x5f8398
push 0x1e
push eax
call dword [ecx + 0x34]
add esp, 0x18
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 3
call fcn.004087d0
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 0x52e2ce
mov eax, dword [eax]
cmp dword [edi + 0xfc], 8
lea ecx, [edi + 0xe8]
jb 0x52e2df
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 0x52e185
push 0
push 0x17f0000
push 0x52cc20
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
je 0x52e185
push 0x601684
push dword [ebp - 0x21c]
call fcn.00423e40
add esp, 8
test al, al
jne 0x52e368
push str.DELETE
push dword [ebp - 0x21c]
call fcn.00423e40
add esp, 8
test al, al
jne 0x52e368
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 0x52e36f
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 0x52e185
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 0x52e467
mov eax, dword [0x656c44]
test eax, eax
je 0x52e45d
push edx
push dword [ebp - 0x224]
push str.The_http_request_returned_HTTP_Status:_d_HttpCommunicator_error:_d
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x20
jmp 0x52e488
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52e48e
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 0x5f8398
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x1c
mov ecx, dword [0x656c48]
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x52e53e
cmp eax, 0x102
je 0x52e4b1
cmp eax, 1
jne 0x52e53e
mov dword [ebx + 0x38], eax
jmp 0x52e4b8
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.00518810
add esp, 4
mov dword [ebp - 0x2c4], 0x658e50
push 0x658e68
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]
mov ecx, 0x658e80
push eax
call fcn.00427010
push 0x658e68
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x2a8]
call fcn.004087d0
mov ecx, dword [0x656c48]
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 0x52e664
cmp eax, 1
je 0x52e664
mov eax, dword [ebx]
test eax, eax
je 0x52e664
cmp dword [ebx + 0xc], 1
jne 0x52e664
push dword [ebx + 8]
lea ecx, [ebp - 0x2e4]
push eax
call fcn.00408bb0
cmp dword [ebp - 0x2d0], 0x10
lea ecx, [ebp - 0x2e4]
mov edx, dword [ebp - 0x31c]
cmovae ecx, dword [ebp - 0x2e4]
push 0
call fcn.005184e0
mov edx, dword [edi + 0x30]
add esp, 4
test edx, edx
je 0x52e5e9
mov eax, dword [ebp - 0x31c]
cmp dword [eax + 0x14], 8
jb 0x52e5d0
mov ecx, dword [eax]
jmp 0x52e5d2
mov ecx, eax
mov eax, dword [edx]
push ecx
push str.Response_Message____n__s
push str.HTTPConnector
push 0x5f8398
push 0x14
push edx
jmp 0x52e658
cmp dword [0x656c44], 0
je 0x52e627
mov eax, dword [ebp - 0x31c]
cmp dword [eax + 0x14], 8
jb 0x52e600
mov eax, dword [eax]
push eax
push str.Response_Message____n__s
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x14
call dword [0x656c44]
add esp, 0x1c
jmp 0x52e65e
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52e664
mov eax, dword [ebp - 0x31c]
cmp dword [eax + 0x14], 8
jb 0x52e641
mov edx, dword [eax]
jmp 0x52e643
mov edx, eax
mov eax, dword [ecx]
push edx
push str.Response_Message____n__s
push str.HTTPConnector
push 0x5f8398
push 0x14
push ecx
call dword [eax + 0x34]
add esp, 0x18
mov ecx, dword [0x656c48]
mov eax, dword [ebx + 0x38]
cmp eax, 2
je 0x52e67b
cmp eax, 1
je 0x52e67b
push ecx
mov ecx, ebx
call fcn.0052d1e0
jmp 0x52e6e1
mov edx, dword [edi + 0x30]
test edx, edx
je 0x52e698
mov eax, dword [edx]
push str.Send_timed_out___So_callback_will_free_the_memory
push str.HTTPConnector
push 0x5f8398
push 0x14
push edx
jmp 0x52e6db
mov eax, dword [0x656c44]
test eax, eax
je 0x52e6c3
push str.Send_timed_out___So_callback_will_free_the_memory
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x14
call eax
add esp, 0x18
jmp 0x52e6e1
test ecx, ecx
je 0x52e6e1
mov eax, dword [ecx]
push str.Send_timed_out___So_callback_will_free_the_memory
push str.HTTPConnector
push 0x5f8398
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 0x52e845
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x52e7d2
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.00576a65
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 0x52e7b7
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.00576861
mov ecx, dword [edi + 0x30]
add esp, 4
test ecx, ecx
je 0x52e789
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.00408870
lea ecx, [ebp - 0x2c0]
call fcn.004087d0
jmp 0x52d8cb
push ebx
lea ecx, [ebp - 0x2c0]
call fcn.004089c0
push ebx
call fcn.00576861
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x320]
test esi, esi
je 0x52e94b
cmp dword [ebp - 0x2b0], 0
sete al
test al, al
jne 0x52e94b
mov edx, dword [edi + 0x30]
test edx, edx
jne 0x52e8f6
mov ecx, dword [0x656c44]
test ecx, ecx
je 0x52e8ec
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 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0xa
call ecx
add esp, 0x1c
jmp 0x52e925
mov esi, dword [edi + 0x30]
test esi, esi
je 0x52e876
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 0x5f8398
push 0x28
push dword [edi + 0x30]
call dword [esi + 0x34]
add esp, 0x18
jmp 0x52e7d2
cmp dword [0x656c44], 0
je 0x52e8b1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push str.Failed_in_quering_WinHttpHeaders_error:_d
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call dword [0x656c44]
add esp, 0x1c
jmp 0x52e7d2
mov edx, dword [0x656c48]
test edx, edx
je 0x52e7cc
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 0x5f8398
push 0x28
push dword [0x656c48]
call dword [esi + 0x34]
add esp, 0x18
jmp 0x52e7d2
mov edx, dword [0x656c48]
test edx, edx
je 0x52e925
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 0x5f8398
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.0040d5f0
mov edx, esi
mov esi, dword [ebp - 0x320]
mov ecx, esi
call fcn.0052c7e0
add esp, 0x18
push str.Content_Encoding
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x21c], 0
call fcn.00408810
lea eax, [ebp - 0x2a8]
mov ecx, esi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00421b50
lea ecx, [ebp - 0x2a8]
call fcn.004087d0
mov eax, dword [ebp - 0x21c]
cmp eax, dword [esi]
je 0x52ea64
push 0
push str.gzip
lea ecx, [eax + 0x28]
call fcn.00428600
cmp eax, 0xffffffff
je 0x52ea64
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.00519260
test al, al
je 0x52e9ff
mov eax, dword [ebp - 0x31c]
lea ecx, [ebp - 0x2fc]
cmp eax, ecx
je 0x52ea55
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00408f10
jmp 0x52ea55
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52ea3b
mov eax, dword [0x656c44]
test eax, eax
je 0x52ea31
push str.Some_error_occured_in_unzip
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x28
call eax
add esp, 0x18
jmp 0x52ea55
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52ea55
mov eax, dword [ecx]
push str.Some_error_occured_in_unzip
push str.HTTPConnector
push 0x5f8398
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x14
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 0xf
call fcn.004087d0
cmp dword [ebp - 0x220], 0
jne 0x52eb7d
mov eax, dword [ebp - 0x314]
cmp byte [eax + 0x75], 0
je 0x52eb7d
cmp dword [ebp - 0x300], 0x1bb
jne 0x52eb7d
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 0x52eacc
call ebx
jmp 0x52eb7d
mov eax, dword [ebp - 0x300]
mov esi, dword [sym.imp.CRYPT32.dll_CertGetIssuerCertificateFromStore]
nop dword [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 0x52eae0
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.00539b00
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x33c]
call fcn.0052ee20
add esp, 4
mov esi, dword [ebp - 0x320]
mov ecx, esi
push eax
mov byte [ebp - 4], 0x12
call fcn.0052f010
push eax
add eax, 0x10
mov ecx, esi
push eax
push 0
lea eax, [ebp - 0x2c8]
push eax
call fcn.00422490
lea ecx, [ebp - 0x33c]
call fcn.0052ec80
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0xf
call fcn.004087d0
push ecx
push esi
push dword [ebp - 0x314]
mov ecx, edi
call fcn.0052bba0
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.00408870
lea ecx, [ebp - 0x2c0]
call fcn.004087d0
lea ecx, [ebp - 0x258]
call fcn.004087d0
lea ecx, [ebp - 0x240]
call fcn.00408870
lea ecx, [ebp - 0x270]
call fcn.00408870
lea ecx, [ebp - 0x290]
call fcn.004087d0
mov eax, dword [ebp - 0x220]
jmp 0x52ec5b
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52ec3c
mov eax, dword [0x656c44]
test eax, eax
je 0x52ec32
push str.Invalid_arguments_to_SendHTTPRequest
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
jmp 0x52ec56
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52ec56
mov eax, dword [ecx]
push str.Invalid_arguments_to_SendHTTPRequest
push str.HTTPConnector
push 0x5f8398
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.005765b2
mov esp, ebp
pop ebp
ret 0x10