Function at 0x49b400
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ab02
mov eax, dword fs:[0]
push eax
mov eax, 0x1080
call fcn.004c7830
mov eax, dword [0x567e00]
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 dword [ebp - 0x101c], edi
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1040], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x1048], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x1044], ecx
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x103c], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x1038], ecx
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 0x1024], ecx
xor ecx, ecx
mov dword [ebp - 0x102c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1020], ecx
mov dword [ebp - 0x1050], ecx
mov dword [ebp - 0x1080], ecx
mov dword [ebp - 0x1074], ecx
lea ecx, [ebp - 0x7b0]
mov ebx, dword [ebp + 0x24]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1088], ecx
lea ecx, [ebp - 0x3a0]
mov dword [ebp - 0x107c], ecx
lea ecx, [ebp - 0x9b8]
mov dword [ebp - 0x1070], ecx
lea ecx, [ebp - 0xbc0]
mov dword [ebp - 0x1068], ecx
lea ecx, [ebp - 0xdc8]
mov dword [ebp - 0x1060], ecx
lea ecx, [ebp - 0xfd0]
mov dword [ebp - 0x1058], ecx
lea ecx, [ebp - 0x108c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x108c], 0x3c
mov dword [ebp - 0x106c], 0x104
mov dword [ebp - 0x105c], 0x104
mov dword [ebp - 0x1084], 0x104
mov dword [ebp - 0x1064], 0x104
mov dword [ebp - 0x1078], 0x104
mov dword [ebp - 0x1054], 0x104
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x49b5c6
push str.InternetCrackUrlW_fail.
lea ecx, [ebp - 0xfe8]
call fcn.004050b0
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
call fcn.0042cd50
push esi
mov ecx, eax
call fcn.00450f60
call fcn.0042cd50
lea ecx, [ebp - 0xfe8]
push ecx
mov ecx, eax
call fcn.00450f70
mov edx, dword [ebp - 0xfd4]
cmp edx, 8
jb 0x49c372
mov ecx, dword [ebp - 0xfe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49bb89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x49bb89
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x49b5ee
push str.InternetAttemptConnect_fail.
lea ecx, [ebp - 0xfe8]
call fcn.004050b0
mov dword [ebp - 4], 1
jmp 0x49b558
xor eax, eax
cmp dword [ebp - 0x1080], 4
sete al
mov dword [ebp - 0x1034], eax
call fcn.004e4f60
mov byte [ebp - 0x1026], al
test al, al
je 0x49b644
cmp dword [ebp - 0x1034], 0
jne 0x49b644
push str.should_use_https_
push str.kupdate::KHttpUpload::OpenWeb
push 0xa6
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcwebhttpupload.cpp
push 0
call fcn.00412230
add esp, 0x14
mov dword [edi + 8], 0xfffffffe
xor eax, eax
jmp 0x49c383
push 0x80
lea eax, [ebp - 0x198]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0
push 0x40
lea eax, [ebp - 0x198]
push eax
push str.HKCUSoftwareKingsoftOffice6.0Commonupdateinfo_notmaptoip
call fcn.0044cf60
mov edx, dword fs:[0x2c]
add esp, 0x1c
cmp dword [edi + 4], 0
mov ecx, dword [0x56d69c]
mov dword [ebp - 0x104c], edx
je 0x49b828
test eax, eax
jne 0x49b6df
mov ecx, 0x517cd0
lea eax, [ebp - 0x198]
jmp 0x49b6a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49b6c6
test dx, dx
je 0x49b6c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49b6c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x49b6a0
xor eax, eax
jmp 0x49b6cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x49b828
mov ecx, dword [0x56d69c]
mov edx, dword [ebp - 0x104c]
mov ecx, dword [edx + ecx*4]
mov eax, dword [0x56c5c0]
cmp eax, dword [ecx + 4]
jg 0x49c3a1
xor eax, eax
mov dword [ebp - 0x1000], 0
lea ecx, [ebp - 0x3a0]
mov dword [ebp - 0xff0], 0
mov dword [ebp - 0xfec], 7
lea edx, [ecx + 2]
mov word [ebp - 0x1000], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49b723
sub ecx, edx
lea eax, [ebp - 0x3a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1000]
call fcn.00403a70
lea eax, [ebp - 0x1000]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0xfe8]
mov ecx, 0x56c5b8
push eax
call fcn.0049df90
mov edx, dword [ebp - 0xfec]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x49b7ab
mov ecx, dword [ebp - 0x1000]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49b7a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49b5c0
push edx
push ecx
call fcn.004c6f6f
add esp, 8
push 0x208
lea eax, [ebp - 0x3a0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0xfd4], 8
lea eax, [ebp - 0xfe8]
cmovae eax, dword [ebp - 0xfe8]
push eax
lea eax, [ebp - 0x3a0]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, dword [ebp - 0xfd4]
add esp, 0x18
cmp edx, 8
jb 0x49b828
mov ecx, dword [ebp - 0xfe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49b81e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49b5c0
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x49b840
add eax, 4
cmp word [eax], 0
je 0x49b840
push 0
push 0
push eax
push 3
jmp 0x49b848
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx], eax
test eax, eax
jne 0x49b878
push str.InternetOpenW_fail.
lea ecx, [ebp - 0xfe8]
mov dword [edi + 8], 0xfffffffd
call fcn.004050b0
mov dword [ebp - 4], 4
jmp 0x49b558
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionExW]
lea ecx, [ebp - 0x102c]
push 0
push 4
push ecx
push 2
push eax
mov dword [ebp - 0x102c], 0x7530
call esi
push 0
push 4
lea eax, [ebp - 0x102c]
push eax
push 5
push dword [ebx]
call esi
push 0
push 4
lea eax, [ebp - 0x102c]
push eax
push 6
push dword [ebx]
call esi
mov eax, dword [ebp - 0x1034]
push edi
shl eax, 0x17
push eax
push 3
push dword [ebp - 0x1068]
push dword [ebp - 0x1070]
push dword [ebp - 0x1074]
push dword [ebp - 0x107c]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 0x103c]
mov dword [ecx], eax
test eax, eax
jne 0x49b916
push str.InternetConnectW_fail.
lea ecx, [ebp - 0xfe8]
mov dword [edi + 8], 0xfffffffc
call fcn.004050b0
mov dword [ebp - 4], 5
jmp 0x49b558
mov edx, dword [ebp - 0x1060]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x1000], 0
mov dword [ebp - 0xff0], 0
mov dword [ebp - 0xfec], 7
mov word [ebp - 0x1000], ax
lea esi, [ecx + 2]
jmp 0x49b950
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49b950
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1000]
call fcn.00403a70
mov ebx, dword [ebp - 0x1048]
mov dword [ebp - 4], 6
test ebx, ebx
je 0x49b9bc
cmp word [ebx], 0
je 0x49b9bc
push 1
push 0x51eba0
lea ecx, [ebp - 0x1000]
call fcn.004038f0
mov ecx, ebx
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49b9a0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x1000]
call fcn.004038f0
cmp dword [ebp - 0x1034], 0
mov ecx, 0x84280000
mov dword [ebp - 0x1030], 0x531760
mov dword [ebp - 0x102c], 0
je 0x49ba84
mov eax, dword [ebp - 0x107c]
mov edi, eax
mov dword [ebp - 0x1048], eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x49b9f3
sub edi, ecx
sar edi, 1
lea esi, [edi + 1]
push esi
call fcn.004c6f7d
push edi
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push esi
push dword [ebp - 0x1048]
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x49ba54
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0x1025], al
test ebx, ebx
je 0x49ba63
push ebx
call fcn.004c6f86
mov al, byte [ebp - 0x1025]
add esp, 4
jmp 0x49ba63
test ebx, ebx
je 0x49ba61
push ebx
call fcn.004c6f86
add esp, 4
xor al, al
mov edi, dword [ebp - 0x101c]
movzx ecx, al
shl ecx, 0xc
add ecx, 0x84a80000
cmp byte [ebp - 0x1026], 0
jne 0x49ba84
or ecx, 0x43000
cmp dword [ebp - 0xfec], 8
lea eax, [ebp - 0x1000]
push edi
cmovae eax, dword [ebp - 0x1000]
push ecx
lea ecx, [ebp - 0x1030]
push ecx
push 0
push 0
push eax
mov eax, dword [ebp - 0x103c]
push dword [ebp - 0x1040]
push dword [eax]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, dword [ebp - 0x1038]
mov dword [esi], eax
test eax, eax
jne 0x49bb98
push str.HttpOpenRequestW_fail.
lea ecx, [ebp - 0xfe8]
mov dword [edi + 8], 0xfffffffb
call fcn.004050b0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 7
call edi
mov esi, eax
call fcn.0042cd50
push esi
mov ecx, eax
call fcn.00450f60
call fcn.0042cd50
lea ecx, [ebp - 0xfe8]
push ecx
mov ecx, eax
call fcn.00450f70
mov edx, dword [ebp - 0xfd4]
cmp edx, 8
jb 0x49bb4f
mov ecx, dword [ebp - 0xfe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49bb45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49b5c0
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0xfec]
cmp edx, 8
jb 0x49c372
mov ecx, dword [ebp - 0x1000]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49bb89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49b5c0
push edx
push ecx
call fcn.004c6f6f
add esp, 8
jmp 0x49c372
mov edx, dword [ebp - 0xfec]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x49bbe1
mov ecx, dword [ebp - 0x1000]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49bbd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49b5c0
push edx
push ecx
call fcn.004c6f6f
mov eax, dword [esi]
add esp, 8
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0xa0000000
push 0xd
push str.Accept:___r_n
push eax
call ebx
test eax, eax
jne 0x49bc16
push str.HttpAddRequestHeaders_add_Accept_fail.
lea ecx, [ebp - 0xfe8]
call fcn.004050b0
mov dword [ebp - 4], 8
jmp 0x49b558
mov ecx, 0x14
lea edi, [ebp - 0x118]
mov esi, str.Content_Type:_application_octet_stream_r_n
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x118]
lea edx, [ecx + 2]
movsw word es:[edi], word [esi]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49bc33
mov esi, dword [ebp - 0x1038]
lea eax, [ebp - 0x118]
sub ecx, edx
push 0xa0000000
sar ecx, 1
push ecx
push eax
push dword [esi]
call ebx
test eax, eax
jne 0x49bc79
push str.HttpAddRequestHeaders_add_Hdrs_fail.
lea ecx, [ebp - 0xfe8]
call fcn.004050b0
mov dword [ebp - 4], 9
jmp 0x49b558
mov edi, dword [ebp - 0x1024]
test edi, edi
je 0x49bcca
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x49bc90
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49bc90
sub ecx, edx
push 0xa0000000
sar ecx, 1
push ecx
push edi
push dword [esi]
call ebx
test eax, eax
jne 0x49bcca
push str.HttpAddRequestHeaders_add_Headers_fail.
lea ecx, [ebp - 0xfe8]
call fcn.004050b0
mov dword [ebp - 4], 0xa
jmp 0x49b558
push 0x208
lea eax, [ebp - 0x5a8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp + 0x20]
lea eax, [ebp - 0x5a8]
push edi
push str.Content_Length:__d_r_n
push 0x104
push eax
call fcn.00411c10
lea ecx, [ebp - 0x5a8]
add esp, 0x1c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49bd03
sub ecx, edx
lea eax, [ebp - 0x5a8]
push 0xa0000000
sar ecx, 1
push ecx
push eax
push dword [esi]
call ebx
test eax, eax
jne 0x49bd43
push str.HttpAddRequestHeaders_add_ContentLength_fail.
lea ecx, [ebp - 0xfe8]
call fcn.004050b0
mov dword [ebp - 4], 0xb
jmp 0x49b558
cmp dword [ebp - 0x1034], 0
je 0x49bdc1
call fcn.004e4cf0
test al, al
je 0x49bdc1
push 0x13
xor eax, eax
mov dword [ebp - 0x1000], 0
push str.HttpsSecurityBypass
lea ecx, [ebp - 0x1000]
mov dword [ebp - 0xff0], 0
mov dword [ebp - 0xfec], 7
mov word [ebp - 0x1000], ax
call fcn.00403a70
mov eax, dword [ebp - 0x1020]
or eax, 1
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x102c], eax
lea eax, [ebp - 0x1000]
push eax
call fcn.004e5080
add esp, 4
test al, al
je 0x49bdc1
mov bl, 1
jmp 0x49bdc3
xor bl, bl
mov eax, dword [ebp - 0x1020]
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x49be1d
mov edx, dword [ebp - 0xfec]
and eax, 0xfffffffe
mov dword [ebp - 0x1020], eax
cmp edx, 8
jb 0x49be1d
mov ecx, dword [ebp - 0x1000]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49be13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49b5c0
push edx
push ecx
call fcn.004c6f6f
add esp, 8
test bl, bl
mov ebx, dword [ebp - 0x1038]
je 0x49be66
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x1024], 4
push eax
lea eax, [ebp - 0x102c]
push eax
push 0x1f
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x102c], 0x380
lea eax, [ebp - 0x102c]
push 4
push eax
push 0x1f
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push edi
push dword [ebp - 0x1044]
push 0
push 0
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49c130
call edi
mov esi, eax
call fcn.004e4cf0
test al, al
jne 0x49bf09
call fcn.004e5370
test al, al
jne 0x49bf09
push 0x22
xor eax, eax
mov dword [ebp - 0x1000], 0
push str.EnableIgnoreHttpsSecurityForUpdate
lea ecx, [ebp - 0x1000]
mov dword [ebp - 0xff0], 0
mov dword [ebp - 0xfec], 7
mov word [ebp - 0x1000], ax
call fcn.00403a70
mov eax, dword [ebp - 0x1020]
or eax, 2
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x102c], eax
lea eax, [ebp - 0x1000]
push eax
call fcn.004e5080
add esp, 4
test al, al
jne 0x49bf09
xor bl, bl
jmp 0x49bf0b
mov bl, 1
mov ecx, dword [ebp - 0x1020]
mov dword [ebp - 4], 0xffffffff
test cl, 2
je 0x49bf5d
mov edx, dword [ebp - 0xfec]
cmp edx, 8
jb 0x49bf5d
mov ecx, dword [ebp - 0x1000]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49bf53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49b5c0
push edx
push ecx
call fcn.004c6f6f
add esp, 8
cmp dword [ebp - 0x1034], 0
je 0x49c07a
test bl, bl
je 0x49c07a
lea eax, [esi - 0x2ee0]
cmp eax, 0xbe
ja 0x49c07a
mov ebx, dword [ebp - 0x1038]
lea eax, [ebp - 0x1024]
push eax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x1020], 0
push eax
push 0x1f
push dword [ebx]
mov dword [ebp - 0x1024], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x1020], 0x13380
lea eax, [ebp - 0x1020]
push 4
push eax
push 0x1f
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push dword [ebp + 0x20]
push dword [ebp - 0x1044]
push 0
push 0
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x49c130
mov ebx, dword [ebp - 0x101c]
lea ecx, [ebp - 0xfe8]
push str.HttpSendRequest_fail.
mov dword [ebx + 8], 0xfffffffa
call fcn.004050b0
mov dword [ebp - 4], 0xf
call edi
mov esi, eax
call fcn.0042cd50
push esi
mov ecx, eax
call fcn.00450f60
call fcn.0042cd50
lea ecx, [ebp - 0xfe8]
push ecx
mov ecx, eax
call fcn.00450f70
mov edx, dword [ebp - 0xfd4]
cmp edx, 8
jb 0x49c378
mov ecx, dword [ebp - 0xfe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49c121
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x49c121
jmp 0x49b5c0
mov ebx, dword [ebp - 0x101c]
lea ecx, [ebp - 0x1000]
push 0x15
xor eax, eax
mov dword [ebp - 0x1000], 0
push str.HttpSendRequest_fail.
mov dword [ebx + 8], 0xfffffffa
mov dword [ebp - 0xff0], 0
mov dword [ebp - 0xfec], 7
mov word [ebp - 0x1000], ax
call fcn.00403a70
mov dword [ebp - 4], 0xe
call fcn.0042cd50
push esi
mov ecx, eax
call fcn.00450f60
call fcn.0042cd50
lea ecx, [ebp - 0x1000]
push ecx
mov ecx, eax
call fcn.00450f70
mov edx, dword [ebp - 0xfec]
cmp edx, 8
jb 0x49c378
mov ecx, dword [ebp - 0x1000]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49c121
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49b5c0
push edx
push ecx
call fcn.004c6f6f
add esp, 8
jmp 0x49c378
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1040], 0x80
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x1024], 0
push eax
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x20000013
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x49c28b
mov esi, dword [ebp - 0x90]
cmp esi, 0x197
jne 0x49c28d
mov ecx, dword [ebp - 0x101c]
push ebx
call fcn.0049c9f0
test eax, eax
je 0x49c28d
push 0x33
lea eax, [ebp - 0xc4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov dword [ebp - 0x103c], 0
lea ecx, [ecx]
lea eax, [ebp - 0x103c]
push eax
push 0x32
lea eax, [ebp - 0xc4]
push eax
push dword [ebx]
call esi
test eax, eax
je 0x49c1f1
cmp dword [ebp - 0x103c], 0
jne 0x49c1d0
push dword [ebp + 0x20]
mov eax, dword [ebp - 0x101c]
push dword [ebp - 0x1044]
push 0
push 0
mov dword [eax + 8], 0x197
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x49c233
push str.HttpSendRequestByProxy_fail.
lea ecx, [ebp - 0xfe8]
call fcn.004050b0
mov dword [ebp - 4], 0x10
jmp 0x49b55e
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1040], 0x80
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x1024], 0
push eax
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x20000013
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x90]
jmp 0x49c28d
xor esi, esi
mov eax, dword [ebp - 0x104c]
mov ebx, dword [0x56d69c]
mov ebx, dword [eax + ebx*4]
mov eax, dword [0x56c4d4]
cmp eax, dword [ebx + 4]
jg 0x49c413
push esi
mov ecx, 0x56c4ac
call fcn.00450fa0
mov eax, dword [ebp - 0x101c]
mov dword [eax + 8], esi
cmp esi, 0x12c
jb 0x49c321
push str.HttpSendRequest_StatusCode_300.
lea ecx, [ebp - 0x1018]
call fcn.004050b0
mov dword [ebp - 4], 0x12
call fcn.0042cd50
push 0x7fff
mov ecx, eax
call fcn.00450f60
call fcn.0042cd50
lea ecx, [ebp - 0x1018]
push ecx
mov ecx, eax
call fcn.00450f70
mov edx, dword [ebp - 0x1004]
cmp edx, 8
jb 0x49c372
mov ecx, dword [ebp - 0x1018]
lea edx, [edx*2 + 2]
jmp 0x49b59e
cmp dword [ebp - 0x1034], 0
je 0x49c368
mov eax, dword [0x56c48c]
cmp eax, dword [ebx + 4]
jg 0x49c461
mov ecx, 0x56bad0
call fcn.00447f00
test al, al
je 0x49c368
mov esi, dword [ebp - 0x1038]
push esi
mov esi, dword [ebp - 0x101c]
mov ecx, esi
call fcn.0049cc90
test al, al
jne 0x49c368
mov dword [esi + 8], 0xfffffff4
mov dword [ebp - 0x1050], 1
mov ebx, dword [ebp - 0x101c]
call edi
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1050]
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.004c6f8b
mov esp, ebp
pop ebp
ret 0x2c
push 0x56c5c0
call fcn.004c7345
add esp, 4
cmp dword [0x56c5c0], 0xffffffff
jne 0x49b6f3
push 0x40
mov dword [ebp - 4], 2
mov dword [0x56c5b8], 0
mov dword [0x56c5bc], 0
call fcn.004c6f3f
push 0x5115a0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x56c5b8], eax
call fcn.004c71fd
push 0x56c5c0
mov dword [ebp - 4], 0xffffffff
call fcn.004c72fb
add esp, 0xc
jmp 0x49b6f3
push 0x56c4d4
call fcn.004c7345
add esp, 4
cmp dword [0x56c4d4], 0xffffffff
jne 0x49c2ad
mov ecx, 0x56c4ac
mov dword [ebp - 4], 0x11
call fcn.00450df0
push 0x511360
call fcn.004c71fd
push 0x56c4d4
mov dword [ebp - 4], 0xffffffff
call fcn.004c72fb
add esp, 8
jmp 0x49c2ad
push 0x56c48c
call fcn.004c7345
add esp, 4
cmp dword [0x56c48c], 0xffffffff
jne 0x49c33b
mov ecx, 0x56bad0
mov dword [ebp - 4], 0x13
call fcn.0043e410
push 0x511320
call fcn.004c71fd
push 0x56c48c
mov dword [ebp - 4], 0xffffffff
call fcn.004c72fb
add esp, 8
jmp 0x49c33b