Function at 0x469e40
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c91d9
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x5142b0]
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 eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0xb8], edx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0xc0], edx
mov edx, dword [ebp + 0x3c]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x34], al
mov ecx, dword [0x4d91a0]
mov edx, dword [0x4d91a4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x5d], al
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov eax, dword [0x513fec]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov edx, dword [eax + 0xc]
mov ecx, 0x513fec
mov dword [ebp - 0x80], 0x100
call edx
add eax, 0x10
mov dword [ebp - 0x64], eax
push str._________Inside_GetInternetRequestHandle_Method___________n
mov byte [ebp - 4], 1
call fcn.00423960
add esp, 4
cmp byte [ebp + 8], 1
jne 0x469f80
mov esi, dword [ebp - 0xb8]
push esi
push str.GetInternetRequestHandle_:_Proxy_Server_Name_:__S__n
call fcn.00423960
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x20]
add esp, 8
push 0
push ecx
push esi
push 3
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x58], edi
jmp 0x469f9d
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x20]
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x58], eax
mov edi, eax
test edi, edi
je 0x46af02
mov esi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0x98]
push str.https
push esi
mov dword [ebx], edi
call fcn.00493c91
add esp, 8
test eax, eax
jne 0x469fd1
lea eax, [ebp - 0x58]
push eax
call fcn.00464d60
add esp, 4
push str.https
push esi
call fcn.00493c91
add esp, 8
test eax, eax
jne 0x469fea
or dword [ebp - 0x80], 0x800000
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x8c]
push 0
push ecx
push edx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
test esi, esi
je 0x46af5a
cmp dword [ebx + 0xc], 2
lea eax, [ebp - 0x18]
mov dword [ebx + 4], esi
mov dword [ebp - 0xa8], eax
je 0x46a03a
mov ecx, dword [ebp - 0x80]
mov edi, dword [ebp - 0x94]
push ecx
lea edx, [ebp - 0xa8]
push edx
push 0
push 0
push edi
push 0x4d9128
jmp 0x46a14a
cmp dword [0x515e10], 0
je 0x46a12f
mov eax, dword [0x513fec]
mov edx, dword [eax + 0xc]
mov edi, dword [0x515e08]
mov ecx, 0x513fec
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x54], ebx
mov byte [ebp - 4], 2
test edi, edi
je 0x46a090
test edi, 0xffff0000
jne 0x46a090
movzx edi, di
push 0
push edi
call fcn.004011a0
add esp, 8
test eax, eax
je 0x46a09c
push edi
push eax
lea ecx, [ebp - 0x54]
call fcn.0045f160
jmp 0x46a099
push edi
lea ecx, [ebp - 0x54]
call fcn.004075f0
mov ebx, dword [ebp - 0x54]
cmp dword [ebx - 4], 1
mov byte [ebp - 4], 3
jle 0x46a0b5
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x54]
call fcn.00402490
mov ebx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x8c]
push ecx
push ebx
call fcn.0049200f
add esp, 8
test eax, eax
sete byte [ebp - 0x72]
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x46a0eb
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
cmp byte [ebp - 0x72], 0
je 0x46a0fe
mov ecx, dword [ebp - 0x80]
push ecx
lea edx, [ebp - 0xa8]
push edx
jmp 0x46a13a
push str.Sending_get_request_instead_of_head_request_n
call fcn.00423960
mov eax, dword [ebp - 0x80]
mov edi, dword [ebp - 0x94]
add esp, 4
push eax
lea ecx, [ebp - 0xa8]
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
push 0x4d9128
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
jmp 0x46a153
mov edx, dword [ebp - 0x80]
push edx
lea eax, [ebp - 0xa8]
push eax
mov edi, dword [ebp - 0x94]
push 0
push 0
push edi
push str.HEAD
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
xor ebx, ebx
mov dword [ebp - 0x5c], eax
cmp eax, ebx
je 0x46afb9
push ebx
push 0x10000
push 0x465480
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp byte [ebp + 0x38], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x98]
push 0x20000000
mov dword [ecx + 8], eax
push 0xffffffffffffffff
je 0x46a190
push str.Connection:_Keep_Alive
jmp 0x46a195
push str.Connection:_close
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
setne al
test al, al
jne 0x46a1c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetInternetRequestHandle_:__Error_in_WinHttpAddRequestHeaders______d__n
mov dword [ebp - 0x68], esi
call fcn.00423ad0
push esi
call fcn.00464180
add esp, 0xc
mov eax, dword [str.SoftwareAdventNetDesktopCentralDCAgent]
lea edx, [ebp - 0x88]
push edx
push str.Authtoken
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00478e50
add esp, 0x10
test eax, eax
jne 0x46a2db
mov ecx, dword [ebp - 0x88]
push 0x4fb68d
push ecx
call fcn.00493c91
add esp, 8
test eax, eax
je 0x46a2db
mov eax, dword [str.SoftwareAdventNetDesktopCentralDCAgent]
lea edx, [ebp - 0x90]
push edx
push str.DynamicKey
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00478e50
mov esi, dword [ebp - 0x90]
sub esp, 0xc
mov ecx, esp
mov ebx, 0xf
mov eax, esi
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x70], esp
mov byte [ecx], 0
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46a248
sub eax, edi
push eax
push esi
call fcn.00410630
mov esi, dword [ebp - 0x88]
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], 0
mov byte [ebp - 4], 4
mov dword [ebp - 0x58], esp
mov byte [ecx], 0
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46a280
sub eax, edi
push eax
push esi
call fcn.00410630
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x71]
mov byte [ebp - 4], 1
call fcn.0047ed60
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0040f820
cmp dword [ebp - 0x3c], 0x10
mov byte [ebp - 4], 1
jb 0x46a2c3
mov edx, dword [ebp - 0x50]
push edx
call fcn.0048ed56
add esp, 4
lea eax, [ebp - 0x78]
push 0x4d01f4
push eax
call fcn.0042bfe0
add esp, 8
xor ebx, ebx
jmp 0x46a41c
push edi
lea ecx, [ebp - 0xa0]
call fcn.00401e50
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 6
cmp dword [eax - 0xc], ebx
jl 0x46a3f6
push str.agentAuthPropsRequest
push eax
call fcn.0049200f
add esp, 8
cmp eax, ebx
je 0x46a3f6
sub eax, dword [ebp - 0xa0]
sar eax, 1
cmp eax, 0xffffffff
je 0x46a3f6
mov edx, dword [str.SoftwareAdventNetDesktopCentralDCAgent]
lea ecx, [ebp - 0x54]
push ecx
push str.ProvKey
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
call fcn.00478e50
mov ecx, dword [str.SoftwareAdventNetDesktopCentralDCAgent]
lea eax, [ebp - 0x58]
push eax
push str.RemoteOfficeAuthKey
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00478e50
mov eax, dword [ebp - 0x58]
add esp, 0x20
cmp eax, ebx
je 0x46a3bf
cmp dword [ebp - 0x54], ebx
je 0x46a3d2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x70], esp
push eax
call fcn.0040f240
mov edx, dword [ebp - 0x54]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xcc], esp
push edx
mov byte [ebp - 4], 7
call fcn.0040f240
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x71]
mov byte [ebp - 4], 6
call fcn.0047ed60
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
call fcn.0040f820
cmp dword [ebp - 0x3c], 0x10
jb 0x46a3bf
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, dword [ebp - 0x54]
cmp eax, ebx
je 0x46a3d2
push eax
call fcn.0048efd8
add esp, 4
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x46a3e5
push eax
call fcn.0048efd8
add esp, 4
mov dword [ebp - 0x58], ebx
lea edx, [ebp - 0x78]
push 0x4d01f4
push edx
call fcn.0042bfe0
add esp, 8
mov eax, dword [ebp - 0xa0]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a41c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x24], ebx
je 0x46a4ef
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x46a4ef
mov ecx, 0x4fb68d
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46a455
test dl, dl
je 0x46a451
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46a455
add eax, 2
add ecx, 2
test dl, dl
jne 0x46a435
xor eax, eax
jmp 0x46a45a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x46a4ef
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
jae 0x46a474
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x54]
push ecx
push eax
call fcn.00462950
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x58]
push edx
push eax
call fcn.00462950
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
add esp, 0x10
push ebx
push ecx
push edx
push 1
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
setne al
test al, al
jne 0x46a4cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetInternetRequestHandle_:__Error_in_WinHttpSetCredentials______d__n
mov dword [ebp - 0x68], esi
call fcn.00423ad0
push esi
call fcn.00464180
add esp, 0xc
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x46a4df
push eax
call fcn.0048efd8
add esp, 4
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x54]
cmp eax, ebx
je 0x46a4ef
push eax
call fcn.0048efd8
add esp, 4
mov eax, dword [ebp - 0x88]
cmp eax, ebx
je 0x46a508
push eax
call fcn.0048efd8
add esp, 4
mov dword [ebp - 0x88], ebx
mov eax, dword [ebp - 0x90]
cmp eax, ebx
je 0x46a521
push eax
call fcn.0048efd8
add esp, 4
mov dword [ebp - 0x90], ebx
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x46a534
push eax
call fcn.0048efd8
add esp, 4
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0xc], 1
jne 0x46a586
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x5c]
push 0x20000000
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
setne al
test al, al
jne 0x46a69f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.InternetGetRequestByBitrate_:__Error_in_WinHttpAddRequestHeaders______d__n
mov dword [ebp - 0x68], esi
call fcn.00423ad0
push esi
call fcn.00464180
add esp, 0xc
jmp 0x46a69f
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x14], ebx
je 0x46a69f
cmp dword [ebp + 0x34], 0x2af9
je 0x46a5c1
mov ecx, dword [ebp - 0xb4]
push ecx
call fcn.0045dc80
add esp, 4
cmp eax, 2
jne 0x46a5c1
push str.GetInternetRequestHandle:_destination_file_is_not_present__hence_if_modified_since_header_is_not_applied_n
call fcn.00423ad0
jmp 0x46a69c
mov esi, dword [ebp - 0x84]
mov edx, dword [esi + 0x1c]
mov eax, dword [edx - 0xc]
lea eax, [eax*4 + 0x32]
push eax
push 1
call fcn.00491e51
mov ebx, eax
mov eax, str.If_Modified_Since:
mov edx, ebx
add esp, 8
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46a5f0
mov eax, dword [esi + 0x1c]
cmp dword [eax - 4], 1
jle 0x46a614
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esi + 0x1c]
call fcn.00402490
mov eax, dword [esi + 0x1c]
mov esi, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46a620
sub eax, esi
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x46a630
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
push str.GetInternetRequestHandle_:__S_n
rep movsb byte es:[edi], byte [esi]
call fcn.00423960
mov edx, dword [ebp - 0x5c]
add esp, 8
push 0x20000000
push 0xffffffffffffffff
push ebx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
setne al
test al, al
jne 0x46a692
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetInternetRequestHandle_:__Error_in_IF_MODIFIED_SINCE_WinHttpAddRequestHeaders______d__n
mov dword [ebp - 0x68], esi
call fcn.00423ad0
push esi
call fcn.00464180
add esp, 0xc
test ebx, ebx
je 0x46a69f
push ebx
call fcn.0048efd8
add esp, 4
mov eax, dword [0x513fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x513fec
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x54], edi
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 4]
mov ebx, dword [eax]
mov byte [ebp - 4], 9
mov dword [ebp - 0x58], ebx
cmp ebx, eax
je 0x46a874
cmp dword [ebx + 0x20], 0x10
lea eax, [ebx + 0xc]
jb 0x46a6d9
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00463cc0
add esp, 8
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
mov byte [ebp - 4], 0xa
cmp eax, esi
je 0x46a741
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x46a734
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x46a734
push eax
call fcn.00404fb0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x46a729
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x54], ebx
mov ebx, dword [ebp - 0x58]
jmp 0x46a741
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.00402380
mov eax, dword [ebp - 0xbc]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a767
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push 0x4d8e9c
lea ecx, [ebp - 0x54]
call fcn.0040a8e0
cmp dword [ebx + 0x3c], 0x10
lea eax, [ebx + 0x28]
jb 0x46a781
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call fcn.00463cc0
add esp, 8
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xb
call fcn.0040a8e0
mov eax, dword [ebp - 0xc8]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46a7ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x54]
cmp dword [edi - 4], 1
jle 0x46a7e2
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00402490
mov edi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x5c]
push 0x20000000
push 0xffffffffffffffff
push edi
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
setne al
test al, al
jne 0x46a81c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.ExternalDownloadHandler::ConnectAndSetHeaders_:__Error_in_WinHttpAddRequestHeaders______d__n
mov dword [ebp - 0x68], esi
call fcn.00423ad0
push esi
call fcn.00464180
add esp, 0xc
cmp byte [ebx + 0x45], 0
jne 0x46a865
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x45], 0
jne 0x46a841
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
jne 0x46a83d
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
je 0x46a833
mov ebx, ecx
jmp 0x46a862
mov eax, dword [ebx + 4]
cmp byte [eax + 0x45], 0
jne 0x46a860
lea ebx, [ebx]
cmp ebx, dword [eax + 8]
jne 0x46a860
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x46a850
mov ebx, eax
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x84]
cmp ebx, dword [eax + 4]
jne 0x46a6ce
cmp dword [ebp + 0x34], 0x2af9
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jne 0x46a8a2
mov eax, dword [ebp - 0x5c]
mov ecx, dword [0x513c70]
push 4
lea edx, [ebp - 0x58]
push edx
push 3
push eax
mov dword [ebp - 0x58], ecx
call edi
test eax, eax
je 0x46b020
mov ecx, dword [ebp - 0xac]
push str.https
push ecx
call fcn.00493c91
add esp, 8
test eax, eax
jne 0x46a9bb
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0x1f
push ecx
mov dword [ebp - 0x58], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
xor ebx, ebx
cmp dword [0x515dbc], ebx
je 0x46a8fe
push str.Get_request_to_reporting_server_n
call fcn.00423db0
mov eax, dword [str.SoftwareAdventNetDesktopCentralDCAgentCertificates]
lea edx, [ebp - 0x70]
push edx
push str.SecureCommFailure
push eax
jmp 0x46a918
push str.Get_request_not_to_reporting_server_n
call fcn.00423db0
mov edx, dword [str.SoftwareAdventNetDesktopCentralDCAgentCertificates]
lea ecx, [ebp - 0x70]
push ecx
push str.SecureCommFailure
push edx
mov esi, dword [ebp - 0x6c]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x70], ebx
call fcn.00478d80
add esp, 0x14
cmp dword [0x515e24], ebx
jne 0x46a948
push str.GetSecFlags:_Ignoring_Certificate_check_flags_added_for_communication__n
call fcn.00423db0
add esp, 4
or esi, 0x3300
jmp 0x46a955
push str.GetSecFlags:_Security_certificate_installed__so_validating_certificate_AND_Certificate_flags_are_ignored__n
call fcn.00423db0
add esp, 4
mov ecx, dword [ebp - 0x5c]
push 4
lea eax, [ebp - 0x6c]
push eax
push 0x1f
push ecx
mov dword [ebp - 0x6c], esi
mov dword [0x515dbc], ebx
call edi
test eax, eax
je 0x46b09f
push str.GetInternetRequestHandle_:__The_request_is_updated_with_the_internet_option_security_flags.__n
call fcn.00423960
lea edx, [ebp - 0x5c]
push edx
call fcn.0047e6f0
add esp, 8
test eax, eax
je 0x46a99d
push str.GetInternetRequestHandle:_Client_Certificate_set_successfullly__n
call fcn.00423db0
add esp, 4
jmp 0x46a9bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetInternetRequestHandle_:__Error_in_WinHttpSetOption_for_client_certificate______d__n
call fcn.00423ad0
push esi
call fcn.00464180
add esp, 0xc
jmp 0x46a9bd
xor ebx, ebx
cmp byte [ebp + 8], 0
je 0x46aa74
mov esi, dword [ebp - 0xb0]
cmp esi, ebx
je 0x46aa74
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46a9e0
sub eax, edx
sar eax, 1
cmp eax, 1
jbe 0x46aa74
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46aa00
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x5c]
push esi
push 0x1002
push eax
call edi
test eax, eax
je 0x46b11d
mov esi, dword [ebp - 0xc0]
cmp esi, ebx
je 0x46aa74
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46aa33
sub eax, edx
sar eax, 1
cmp eax, 1
jbe 0x46aa74
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46aa50
mov ecx, dword [ebp - 0x5c]
sub eax, edx
sar eax, 1
push eax
push esi
push 0x1003
push ecx
call edi
test eax, eax
je 0x46b19c
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0x64]
lea ebx, [ebx]
cmp dword [ebp - 0x58], 5
jge 0x46b2b3
cmp dword [ebp + 0x34], 0x2af9
jne 0x46aab2
mov ecx, dword [ebp - 0x5c]
mov edx, dword [0x513c6c]
push 4
lea eax, [ebp - 0x70]
push eax
push 6
push ecx
mov dword [ebp - 0x70], edx
call edi
test eax, eax
je 0x46b1d7
movzx edx, byte [ebp + 0x44]
push edx
push str.GetInternetRequestHandle_:_IsAcceptEncodingGzip_Enabled_____d_n
call fcn.00423960
add esp, 8
cmp byte [ebp + 0x44], 0
jne 0x46aace
xor edi, edi
jmp 0x46ab1e
push 0x15
push str.Accept_Encoding:_gzip
lea ecx, [ebp - 0x64]
call fcn.00402380
mov ebx, dword [ebp - 0x64]
cmp dword [ebx - 4], 1
jle 0x46aaf5
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00402490
mov ebx, dword [ebp - 0x64]
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46ab00
sub eax, edx
sar eax, 1
push str.WinHttpSendRequest_with__Accept_Encoding:_gzip__Header_n
mov edi, eax
call fcn.00423960
add esp, 4
cmp dword [ebx - 4], 1
jle 0x46ab33
mov ecx, dword [ebx - 0xc]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00402490
mov ebx, dword [ebp - 0x64]
mov ecx, 0x4fb3fc
mov eax, ebx
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46ab66
test dx, dx
je 0x46ab62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46ab66
add eax, 4
add ecx, 4
test dx, dx
jne 0x46ab40
xor eax, eax
jmp 0x46ab6b
sbb eax, eax
sbb eax, 0xffffffff
push 0
push 0
push 0
push 0
test eax, eax
jne 0x46ab7f
mov edx, dword [ebp - 0x5c]
push eax
push eax
push edx
jmp 0x46ab85
mov eax, dword [ebp - 0x5c]
push edi
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne al
test al, al
jne 0x46ad3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x68], esi
cmp esi, 0x2eef
je 0x46abb3
cmp esi, 0x2ef1
jne 0x46abd1
mov ecx, dword [ebp - 0x8c]
push ecx
push str.GetInternetRequestHandle_:_Going_to_close_the_request_handle_and_going_to_resending_the_data_to_the_server__S__n
call fcn.00423db0
add esp, 8
cmp byte [ebp - 0x5d], 0
je 0x46ae93
push esi
push str.GetInternetRequestHandle_:__Error_in_WinHttpSendRequest_____d__n
call fcn.00423ad0
push esi
call fcn.00464180
add esp, 0xc
cmp esi, 0x2f8f
je 0x46abf9
cmp esi, 0x2efe
jne 0x46acd7
mov edx, dword [0x515e78]
cmp dword [edx], 0
jne 0x46acd7
mov eax, dword [0x515c50]
test eax, eax
je 0x46acd7
push str.REFRESH
push eax
call fcn.00493c91
add esp, 8
test eax, eax
jne 0x46acd7
push str.GetInternetRequestHandle_:_Enabling_Certificate_ignore_flags__n
call fcn.00423960
mov esi, 1
add esp, 4
cmp dword [ebx - 4], esi
jle 0x46ac51
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00402490
mov ebx, dword [ebp - 0x64]
mov ecx, 0x4fb3fc
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46ac7e
test dx, dx
je 0x46ac7a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46ac7e
add eax, 4
add ecx, 4
test dx, dx
jne 0x46ac58
xor eax, eax
jmp 0x46ac83
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x46aca2
mov ecx, dword [ebp - 0x6c]
push eax
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [ebp - 0x5c]
push edx
call fcn.004647e0
mov esi, eax
mov dword [ebp - 0x68], esi
jmp 0x46acd4
cmp dword [ebx - 4], esi
jle 0x46acb6
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00402490
mov ebx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x6c]
push 0
push ecx
push 0
push 0
push 0
push 0
push edi
lea edx, [ebp - 0x5c]
push ebx
push edx
call fcn.004647e0
mov esi, eax
mov dword [ebp - 0x68], eax
add esp, 0x24
test esi, esi
je 0x46ad64
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46ad02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ad22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0x10
jb 0x46af53
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, esi
jmp 0x46b539
cmp dword [0x515e18], 0
je 0x46ad64
mov eax, dword [str.SoftwareAdventNetDesktopCentralDCAgent]
push 4
push 0
push str.CertMETrackingAdded
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00478900
add esp, 0x14
mov ecx, dword [ebp - 0x5c]
push 0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x46b2b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x68], esi
cmp esi, 0x2f00
jne 0x46adb8
mov edx, dword [ebp - 0x8c]
push edx
push str.GetInternetRequestHandle_:_Resending_the_data_to_the_server__S__n
call fcn.00423db0
add esp, 8
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x58]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jmp 0x46aa80
cmp esi, 0x2eef
je 0x46ae6a
cmp esi, 0x2f78
je 0x46ae6a
push esi
push str.GetInternetRequestHandle_:__Error___WinHttpReceiveResponse______d__n
call fcn.00423db0
push esi
call fcn.00464180
add esp, 0xc
cmp esi, 0x2f8f
jne 0x46b253
cmp dword [0x515e18], 0
je 0x46b253
mov eax, dword [ebp - 0x6c]
push 0
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00464ae0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x68], esi
test esi, esi
je 0x46ae85
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46ae3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ae5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x34]
call fcn.0040f2c0
mov eax, esi
jmp 0x46b539
mov edx, dword [ebp - 0x8c]
push esi
push edx
push str.GetInternetRequestHandle_:_Going_to_close_the_request_handle_and_going_to_resending_the_data_to_the_server__S_as_the_error_code_received_is__d__n
call fcn.00423db0
add esp, 0xc
cmp byte [ebp - 0x5d], 0
je 0x46aed4
inc dword [ebp - 0x58]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jmp 0x46aa80
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
mov byte [ebp - 0x5d], 1
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469f43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x469f43
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
mov byte [ebp - 0x5d], 1
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x46aebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetInternetRequestHandle_:__Error_in_WinHttpOpen______d__n
call fcn.00423ad0
push esi
call fcn.00464180
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46af41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0x10
jb 0x46af53
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, esi
jmp 0x46b539
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetInternetRequestHandle_:__Error_in_WinHttpConnect______d__n
call fcn.00423ad0
push esi
call fcn.00464180
add esp, 0xc
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46afa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0x10
jb 0x46af53
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, esi
jmp 0x46b539
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.GetInternetRequestHandle_:__Error_in_WinHttpOpenRequest______d__n
call fcn.00423ad0
push edi
call fcn.00464180
add esp, 0xc
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
mov edx, dword [ebp - 0x58]
push edx
call esi
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b007
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0x10
jb 0x46b019
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, edi
jmp 0x46b539
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetInternetRequestHandle_:__Error_in_WinHttpSetOption______d__n
call fcn.00423ad0
push esi
call fcn.00464180
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b05f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b082
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0x10
jb 0x46af53
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, esi
jmp 0x46b539
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetInternetRequestHandle_:__Error_in_WinHttpSetOption______d__n
call fcn.00423ad0
push esi
call fcn.00464180
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b0de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b100
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0x10
jb 0x46af53
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, esi
jmp 0x46b539
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetInternetRequestHandle_:__Error_in_WinHttpSetOption______d__n
call fcn.00423ad0
push esi
call fcn.00464180
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b15c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b17f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0x10
jb 0x46af53
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, esi
jmp 0x46b539
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetInternetRequestHandle_:__Error_in_WinHttpSetOption______d__n
call fcn.00423ad0
push esi
call fcn.00464180
add esp, 0xc
lea ecx, [ebp - 0x54]
call fcn.00401ed0
lea ecx, [ebp - 0x64]
call fcn.00401ed0
lea ecx, [ebp - 0x34]
call fcn.0040f2c0
mov eax, esi
jmp 0x46b539
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetInternetRequestHandle_:__Error_in_WinHttpSetOption_before_send_request______d__n
call fcn.00423ad0
push esi
call fcn.00464180
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b216
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b236
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0x10
jb 0x46af53
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, esi
jmp 0x46b539
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b276
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b296
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0x10
jb 0x46af53
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, esi
jmp 0x46b539
mov eax, dword [ebp - 0x5c]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
lea edx, [ebp - 0x7c]
push edx
push 0
push 0
push 0x16
push eax
mov dword [ebp - 0x7c], 4
call esi
mov ecx, dword [ebp - 0x7c]
lea edx, [ecx*4 + 8]
push edx
push 1
call fcn.00491e51
mov ecx, dword [ebp - 0x5c]
add esp, 8
push 0
mov edi, eax
lea eax, [ebp - 0x7c]
push eax
push edi
push 0
push 0x16
push ecx
call esi
test eax, eax
jne 0x46b37e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.GetInternetRequestHandle_:__Error_in_WinHttpQueryHeaders______d__n
call fcn.00423ad0
push esi
call fcn.00464180
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b341
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b361
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0x10
jb 0x46af53
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, esi
jmp 0x46b539
push edi
push str.GetInternetRequestHandle_:__Header_Informations_:__n__S__n
call fcn.00423960
add esp, 8
test edi, edi
je 0x46b39b
push edi
call fcn.0048efd8
add esp, 4
xor edi, edi
mov ecx, dword [ebp - 0x5c]
push 0
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x9c]
push eax
push 0
push 0x20000013
push ecx
mov dword [ebp - 0x7c], 4
call esi
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x98]
test eax, eax
setne al
mov dword [edx + 0x14], ecx
test al, al
jne 0x46b44e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.GetInternetRequestHandle_:_WinHttpQueryHeaders_failed_with_the_error_code_while_getting_http_status_code__d__n
call fcn.00423ad0
add esp, 8
call esi
mov esi, eax
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b411
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b431
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0x10
jb 0x46af53
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, esi
jmp 0x46b539
cmp ecx, 0x197
jne 0x46b4c7
push ecx
push str.GetInternetRequestHandle_:_Proxy_Credentials_are_failed_to_authenticate__d__n
call fcn.00423ad0
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x9c]
add eax, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b48d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b4ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0x10
jb 0x46af53
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, esi
jmp 0x46b539
push str._________End_of_GetInternetRequestHandle_Method___________n
call fcn.00423960
add esp, 4
test edi, edi
je 0x46b4e1
push edi
call fcn.0048efd8
add esp, 4
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b504
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b524
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x20], 0x10
jb 0x46b536
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048ed56
add esp, 4
mov eax, dword [ebp - 0x68]
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.0048ed61
mov esp, ebp
pop ebp
ret