Function at 0x495440
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0c02
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x50cc94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x18], ebx
call fcn.004a1286
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x495487
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], ebx
call fcn.004a1286
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4954b6
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi + 0xe4], ebx
mov ecx, dword [esi + 0x5c]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x495529
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x49551a
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x49551a
push eax
call fcn.004242ab
mov esi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x49550f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 8]
jmp 0x495527
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0042423a
xor ebx, ebx
push 7
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004237e1
mov byte [ebp - 4], 2
mov eax, dword [eax]
push str.http:__
mov edi, 1
push eax
mov dword [ebp - 0x18], edi
call fcn.004afbc0
add esp, 8
cmp eax, ebx
sete al
test al, al
jne 0x49558e
push 8
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x14]
call fcn.004237e1
mov eax, dword [eax]
push str.https:__
push eax
mov dword [ebp - 0x18], 3
call fcn.004afbc0
add esp, 8
cmp eax, ebx
sete al
mov byte [ebp - 0xd], 0
test al, al
je 0x495592
mov byte [ebp - 0xd], 1
test byte [ebp - 0x18], 2
je 0x4955bb
mov eax, dword [ebp - 0x44]
and dword [ebp - 0x18], 0xfffffffd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4955bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
test byte [ebp - 0x18], 1
je 0x4955e7
mov eax, dword [ebp - 0x40]
and dword [ebp - 0x18], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4955e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x495813
push 0x14
call fcn.004a0b7a
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x495623
push ebx
push ebx
push ebx
push ebx
push str.CHttpRemoteFile
mov dword [edi], vtable.CHttpRemoteFile.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 0xc], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, edi
jmp 0x495625
xor eax, eax
mov ebx, dword [ebp - 0x14]
push ecx
mov dword [ebp - 0x4c], esp
mov dword [esi + 0xe4], eax
mov esi, esp
push 0x5c
push ecx
add ebx, 0xfffffff0
mov dword [ebp - 0x4c], esp
mov edi, esp
push ebx
call fcn.004242ab
add esp, 4
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.00469190
lea ecx, [ebp - 0x44]
add esp, 0xc
push ecx
call fcn.00468d70
add esp, 8
mov edi, eax
mov byte [ebp - 4], 3
call fcn.00450910
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004242ab
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4956a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.aspx
push edi
call fcn.004afbc0
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4956ed
push 0x4f9bec
push edi
call fcn.004afbc0
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4956ed
push 0x4f9bf4
push edi
call fcn.004afbc0
add esp, 8
test eax, eax
sete al
test al, al
je 0x4957f1
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
test eax, eax
jle 0x49570f
push 0x3f
push edi
call fcn.004b0428
add esp, 8
test eax, eax
je 0x49570f
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x495754
mov ecx, dword [edi - 0xc]
mov eax, 1
sub eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
lea esi, [ecx + 1]
sub ebx, esi
or ebx, eax
mov dword [ebp - 0x3c], ecx
jge 0x495738
push esi
lea ecx, [ebp - 0x14]
call fcn.00421527
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x3c]
mov edx, 0x3f
mov word [edi + ecx*2], dx
test esi, esi
jl 0x49574a
cmp esi, dword [edi - 8]
jle 0x49578f
push 0x80070057
call fcn.00421000
mov ecx, dword [edi - 0xc]
mov eax, 1
sub eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
lea esi, [ecx + 1]
sub ebx, esi
or ebx, eax
mov dword [ebp - 0x3c], ecx
jge 0x49577d
push esi
lea ecx, [ebp - 0x14]
call fcn.00421527
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x3c]
mov edx, 0x26
mov word [edi + ecx*2], dx
test esi, esi
jl 0x49574a
cmp esi, dword [edi - 8]
jg 0x49574a
mov dword [edi - 0xc], esi
xor eax, eax
mov word [edi + esi*2], ax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
mov edx, dword [eax + 0x60]
mov eax, dword [eax + 0x34]
push ecx
push edx
push eax
lea ecx, [ebp - 0x3c]
push str.version_spkgId_sbuildUID_s
push ecx
call fcn.00468c80
add esp, 0x14
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00424996
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4957ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x40]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49585c
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x49585c
push 0x10
call fcn.004a0b7a
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x495854
mov dword [edi], vtable.CFsRemoteFile.0
call fcn.004a1286
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x495843
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0xc], eax
jmp 0x495856
xor edi, edi
mov dword [esi + 0xe4], edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4958d4
push 1
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x14]
call fcn.0042379a
mov byte [ebp - 4], 7
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
or dword [ebp - 0x18], 4
cmp eax, 1
jne 0x49589d
test eax, eax
jge 0x495894
push 0x80070057
call fcn.00421000
movzx eax, word [ecx]
cmp ax, 0x2f
je 0x4958d0
push 1
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x14]
call fcn.0042379a
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
or dword [ebp - 0x18], 8
cmp ecx, 1
jne 0x4958d4
test ecx, ecx
jge 0x4958c7
push 0x80070057
call fcn.00421000
movzx eax, word [eax]
cmp ax, 0x5c
jne 0x4958d4
mov bl, 1
jmp 0x4958d6
xor bl, bl
test byte [ebp - 0x18], 8
je 0x4958ff
mov eax, dword [ebp - 0x44]
and dword [ebp - 0x18], 0xfffffff7
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4958ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 1
test byte [ebp - 0x18], 4
je 0x49592b
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49592b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x49597d
mov ecx, dword [ebp + 8]
push str..xml
add ecx, 0x24
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00423841
add esp, 0xc
mov byte [ebp - 4], 8
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00424996
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49597d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xe4], 0
mov esi, dword [ebp - 0x14]
je 0x4965bd
cmp dword [esi - 0xc], 0
je 0x4965bd
push ecx
lea ebx, [esi - 0x10]
mov dword [ebp - 0x4c], esp
mov edi, esp
push ebx
mov dword [ebp - 0x44], ebx
call fcn.004242ab
mov edx, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [edx + 0xe4]
mov eax, dword [ecx]
mov edx, dword [eax]
add esp, 4
call edx
test eax, eax
jne 0x495a0a
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push esi
push str.CVirtAutoUpdate::CheckForNewVersion:_SetLocation_failed_for__s_
push eax
call fcn.00468c80
add esp, 0xc
call fcn.004949b0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496723
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x496723
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xe4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x38]
push eax
call edx
test eax, eax
ja 0x495a30
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push esi
push str.CVirtAutoUpdate::CheckForNewVersion:_cannot_download_XML_file_from__s_
jmp 0x4959d3
push eax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.004693f0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x38]
push edx
call fcn.004b00c5
mov esi, dword [ebp - 0x40]
add esp, 8
mov eax, esp
mov dword [ebp - 0x4c], esp
push esi
push str.CVirtAutoUpdate::CheckForNewVersion:_XmlData_s
push eax
call fcn.00468c80
add esp, 0xc
call fcn.004949b0
add esp, 4
lea ecx, [ebp - 0x20]
push 0
push ecx
mov ecx, esi
call fcn.0048cb40
add esp, 8
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x20], 0
jne 0x495adc
mov eax, dword [ebp - 0x14]
push ecx
mov edx, esp
mov dword [ebp + 8], esp
push eax
push str.CVirtAutoUpdate::CheckForNewVersion:_cannot_download_XML_file_from__s_
push edx
call fcn.00468c80
add esp, 0xc
call fcn.004949b0
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
mov byte [ebp - 4], 0xa
call fcn.0048d590
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4959e4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x4959e4
push 0
push str.AutoUpdate
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x20]
call fcn.0048dd40
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x2c], 0
jne 0x495b5c
mov eax, dword [ebp - 0x14]
push ecx
mov edx, esp
mov dword [ebp + 8], esp
push eax
push str.CVirtAutoUpdate::CheckForNewVersion:_no_AutoUpdate_info_returned_from_server:__s
push edx
call fcn.00468c80
add esp, 0xc
call fcn.004949b0
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 0xb
call fcn.0048d590
lea edx, [ebp - 0x20]
push edx
mov byte [ebp - 4], 0xa
call fcn.0048d590
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4959e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4959e4
push 0
push 0x4f9edc
lea ecx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x2c]
call fcn.0048dd40
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x28]
test edi, edi
jne 0x495bea
mov eax, dword [ebp - 0x14]
push ecx
mov edx, esp
mov dword [ebp + 8], esp
push eax
push str.CVirtAutoUpdate::CheckForNewVersion:_no_Pkg_info_returned_from_server:__s
push edx
call fcn.00468c80
add esp, 0xc
call fcn.004949b0
add esp, 4
lea ecx, [ebp - 0x28]
push ecx
mov byte [ebp - 4], 0xc
call fcn.0048d590
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 0xb
call fcn.0048d590
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0xa
call fcn.0048d590
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4959e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4959e4
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 0x28]
xor esi, esi
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x495c1d
lea esp, [esp]
mov eax, dword [ebx]
push 0x4f9f7c
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x495c56
inc esi
add ebx, 8
cmp esi, dword [ebp - 0x3c]
jl 0x495c00
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x495d7c
mov eax, dword [esi]
push str.preRemove
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x495d2a
inc ebx
add esi, 8
cmp ebx, dword [ebp - 0x3c]
jl 0x495c30
jmp 0x495d7c
cmp dword [ebx + 4], 0
je 0x495c1d
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov edx, dword [ecx + 0x60]
mov ebx, dword [edi + 0x28]
xor esi, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x495c95
mov eax, dword [ebx]
push 0x4f9f7c
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x495d22
inc esi
add ebx, 8
cmp esi, dword [ebp - 0x3c]
jl 0x495c74
xor ebx, ebx
mov eax, dword [ebp - 0x34]
push eax
push ebx
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x495c1d
mov edx, dword [ebp - 0x14]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push edx
push str.CVirtAutoUpdate::CheckForNewVersion:_PkgId_info_mismatch_returned_from_server:__s
push ecx
call fcn.00468c80
add esp, 0xc
call fcn.004949b0
add esp, 4
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xc
call fcn.0048d590
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 0xb
call fcn.0048d590
lea edx, [ebp - 0x20]
push edx
mov byte [ebp - 4], 0xa
call fcn.0048d590
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495d16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x44]
jmp 0x49670a
mov ebx, dword [ebx + 4]
jmp 0x495c97
cmp dword [esi + 4], 0
je 0x495d7c
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x495d61
nop
mov eax, dword [esi]
push str.preRemove
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x495f11
inc ebx
add esi, 8
cmp ebx, dword [ebp - 0x3c]
jl 0x495d40
xor esi, esi
push str.true
push esi
call fcn.004af6c3
mov ecx, dword [ebp + 8]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x495db1
jmp 0x495d90
mov eax, dword [esi]
push str.version
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x495f19
inc ebx
add esi, 8
cmp ebx, dword [ebp - 0x3c]
jl 0x495d90
xor esi, esi
mov ecx, dword [ebp + 8]
add ecx, 8
push esi
call fcn.0042364b
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 0x28]
xor esi, esi
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x495df1
mov edi, edi
mov eax, dword [ebx]
push str.buildUID
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x495f21
inc esi
add ebx, 8
cmp esi, dword [ebp - 0x3c]
jl 0x495dd0
xor ebx, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ebx
call fcn.0042364b
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 0x28]
xor esi, esi
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x495e31
mov edi, edi
mov eax, dword [ebx]
push str.releaseDate
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x495f29
inc esi
add ebx, 8
cmp esi, dword [ebp - 0x3c]
jl 0x495e10
xor ebx, ebx
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ebx
call fcn.0042364b
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 0x28]
xor esi, esi
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x495e71
mov edi, edi
mov eax, dword [ebx]
push str.hash
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x495f31
inc esi
add ebx, 8
cmp esi, dword [ebp - 0x3c]
jl 0x495e50
xor ebx, ebx
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x14]
push ebx
call fcn.0042364b
mov eax, dword [edi + 0x10]
mov edi, dword [edi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x495eb1
mov edi, edi
mov eax, dword [edi]
push str.updateCondition
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x495f39
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x3c]
jl 0x495e90
xor edi, edi
push edi
lea ecx, [ebp - 0x24]
call fcn.004235f2
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x24]
push str.IfHigher
push edx
call fcn.004af6c3
add esp, 8
test eax, eax
jne 0x495f41
push ecx
lea eax, [esi + 0x34]
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.004235dd
push ecx
mov byte [ebp - 4], 0xf
lea eax, [esi + 8]
mov ecx, esp
mov dword [ebp - 0x48], esp
push eax
call fcn.004235dd
mov byte [ebp - 4], 0xe
call fcn.0046e310
xor ecx, ecx
add esp, 8
test eax, eax
setg cl
mov dword [esi], ecx
jmp 0x495fa0
mov esi, dword [esi + 4]
jmp 0x495d63
mov esi, dword [esi + 4]
jmp 0x495db3
mov ebx, dword [ebx + 4]
jmp 0x495df3
mov ebx, dword [ebx + 4]
jmp 0x495e33
mov ebx, dword [ebx + 4]
jmp 0x495e73
mov edi, dword [edi + 4]
jmp 0x495eb3
mov edx, dword [ebp - 0x24]
push str.IfDifferent
push edx
call fcn.004af6c3
add esp, 8
test eax, eax
jne 0x495f6c
mov eax, dword [esi + 0x34]
push eax
lea eax, [esi + 8]
call fcn.00423675
neg eax
sbb eax, eax
neg eax
mov dword [esi], eax
jmp 0x495fa0
mov eax, dword [ebp - 0x24]
push str.Force
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
jne 0x495f89
mov dword [esi], 1
jmp 0x495fa0
mov ecx, dword [ebp - 0x24]
push str.Never
push ecx
call fcn.004af6c3
add esp, 8
test eax, eax
jne 0x495fa0
mov dword [esi], eax
push str.Exception
lea eax, [ebp - 0x28]
call fcn.0048dcf0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], 0
test eax, eax
jle 0x49647c
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x18]
push edx
mov ebx, str.Exception
lea edi, [ebp - 0x28]
call fcn.0048dde0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x495ff0
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xe
call fcn.0048d590
jmp 0x49646c
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x28]
xor ebx, ebx
test esi, esi
jle 0x496020
lea esp, [esp]
mov eax, dword [edi]
push str.minClientVersion
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x4960cd
inc ebx
add edi, 8
cmp ebx, esi
jl 0x496000
xor edi, edi
push edi
lea ecx, [ebp - 0x34]
call fcn.004235f2
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x28]
xor ebx, ebx
test esi, esi
jle 0x496060
mov edi, edi
mov eax, dword [edi]
push str.maxClientVersion
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x4960d5
inc ebx
add edi, 8
cmp ebx, esi
jl 0x496040
xor edi, edi
push edi
lea ecx, [ebp - 0x30]
call fcn.004235f2
mov bl, 0x12
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
je 0x4960da
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x48], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [ebp + 8]
lea edx, [ecx + 0x34]
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x50], esp
push edx
call fcn.004235dd
mov byte [ebp - 4], bl
call fcn.0046e310
add esp, 8
test eax, eax
jge 0x4960da
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x49642d
mov edi, dword [edi + 4]
jmp 0x496022
mov edi, dword [edi + 4]
jmp 0x496062
mov eax, dword [ebp - 0x30]
cmp dword [eax - 0xc], 0
je 0x49611b
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x50], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
mov dword [esi], eax
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 0x14
add edx, 0x34
mov ecx, esp
mov dword [ebp - 0x48], esp
push edx
call fcn.004235dd
mov byte [ebp - 4], bl
call fcn.0046e310
add esp, 8
test eax, eax
jg 0x4960b1
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x49619b
lea ecx, [ecx]
mov eax, dword [edi]
push str.shouldUpdate
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x49614f
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x48]
jl 0x496130
jmp 0x49619b
cmp dword [edi + 4], 0
je 0x49619b
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x496181
mov eax, dword [edi]
push str.shouldUpdate
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x4961cf
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x48]
jl 0x496164
xor edi, edi
push str.true
push edi
call fcn.004af6c3
mov edx, dword [ebp + 8]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [edx], eax
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x496228
mov edi, edi
mov eax, dword [edi]
push str.preRemove
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x4961d4
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x48]
jl 0x4961b0
jmp 0x496228
mov edi, dword [edi + 4]
jmp 0x496183
cmp dword [edi + 4], 0
je 0x496228
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x49620d
lea esp, [esp]
mov eax, dword [edi]
push str.preRemove
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x496256
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x48]
jl 0x4961f0
xor edi, edi
push str.true
push edi
call fcn.004af6c3
mov ecx, dword [ebp + 8]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x49629b
mov eax, dword [edi]
push str.version
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x49625b
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x48]
jl 0x496237
jmp 0x49629b
mov edi, dword [edi + 4]
jmp 0x49620f
cmp dword [edi + 4], 0
je 0x49629b
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x49628d
mov eax, dword [edi]
push str.version
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x4962cf
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x48]
jl 0x496270
xor edi, edi
mov ecx, dword [ebp + 8]
push edi
add ecx, 8
call fcn.0042364b
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x49631b
lea ebx, [ebx]
mov eax, dword [edi]
push str.buildUID
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x4962d4
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x48]
jl 0x4962b0
jmp 0x49631b
mov edi, dword [edi + 4]
jmp 0x49628f
cmp dword [edi + 4], 0
je 0x49631b
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x49630d
lea esp, [esp]
mov eax, dword [edi]
push str.buildUID
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x49634f
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x48]
jl 0x4962f0
xor edi, edi
mov ecx, dword [ebp + 8]
push edi
add ecx, 0xc
call fcn.0042364b
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x49639b
lea ebx, [ebx]
mov eax, dword [edi]
push str.releaseDate
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x496354
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x48]
jl 0x496330
jmp 0x49639b
mov edi, dword [edi + 4]
jmp 0x49630f
cmp dword [edi + 4], 0
je 0x49639b
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x49638d
lea esp, [esp]
mov eax, dword [edi]
push str.releaseDate
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x4963cf
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x48]
jl 0x496370
xor edi, edi
mov ecx, dword [ebp + 8]
push edi
add ecx, 0x10
call fcn.0042364b
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x496416
lea ebx, [ebx]
mov eax, dword [edi]
push str.hash
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x4963d4
inc ebx
add edi, 8
cmp ebx, dword [ebp - 0x48]
jl 0x4963b0
jmp 0x496416
mov edi, dword [edi + 4]
jmp 0x49638f
cmp dword [edi + 4], 0
je 0x496416
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x28]
xor ebx, ebx
test eax, eax
jle 0x496408
mov esi, eax
mov eax, dword [edi]
push str.hash
push eax
call fcn.004af6c3
add esp, 8
test eax, eax
je 0x4965b5
inc ebx
add edi, 8
cmp ebx, esi
jl 0x4963e8
xor edi, edi
mov ecx, dword [ebp + 8]
push edi
add ecx, 0x14
call fcn.0042364b
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x496439
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49645c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x18]
push ecx
mov byte [ebp - 4], 0xe
call fcn.0048d590
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
inc eax
cmp eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
jl 0x495fbf
mov edx, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0xc]
mov eax, esp
mov dword [ebp - 0x50], esp
push edx
mov edx, dword [esi + 0x10]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
push ecx
push ecx
lea edi, [esi + 0x34]
mov ecx, esp
mov dword [ebp - 0x50], esp
push edi
mov dword [ebp - 0x4c], eax
call fcn.004235dd
push ecx
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ebp - 0x48], esp
lea ebx, [esi + 8]
push ebx
call fcn.004235dd
mov byte [ebp - 4], 0xe
call fcn.0046e310
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
add esp, 8
push eax
mov eax, dword [ebx]
push edx
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x4c]
push edx
push str.CVirtAutoUpdate::CheckForNewVersion:_ServerVer:_ShouldUpdate_d___ServerVer_s__MyVer_s__Comp_d___UpdateCondition_s__ReleaseDate_s__BuildUID_s__Hash_s
push eax
call fcn.00468c80
add esp, 0x28
call fcn.004949b0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49650c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x28]
push ecx
mov byte [ebp - 4], 0xc
call fcn.0048d590
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 0xb
call fcn.0048d590
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0xa
call fcn.0048d590
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496556
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x44]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496576
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49659c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [edi + 4]
jmp 0x49640a
push ecx
mov esi, esp
mov dword [ebp + 8], esp
mov dword [ebp - 0x50], esi
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4965e0
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.CVirtAutoUpdate::CheckForNewVersion:_unknown_protocol___XML_path_
mov byte [ebp - 4], 9
test ecx, 0xffff0000
jne 0x4966da
mov edx, ecx
movzx edi, dx
push edi
call fcn.004a91be
mov ebx, eax
test ebx, ebx
je 0x4966f4
mov eax, edi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4966f4
push edi
push eax
push ebx
call fcn.00421708
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4966f4
mov eax, dword [esi]
movzx ebx, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ebx
or eax, ecx
jge 0x496669
push ebx
mov ecx, esi
call fcn.00421527
movzx eax, word [edi]
mov edx, dword [esi]
add edi, 2
mov dword [ebp + 8], edx
cmp eax, 0xffffffff
jne 0x496683
push edi
call fcn.004af97a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [ebx + ebx]
push edi
push ecx
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x4966a6.1
movzx edx, byte [eax + 0x496770]
jmp dword [edx*4 + 0x496760]
call fcn.004a17ee
call fcn.004a1826
test ebx, ebx
jl 0x49574a
mov eax, dword [esi]
cmp ebx, dword [eax - 8]
jg 0x49574a
mov edx, dword [ebp - 0x4c]
mov dword [eax - 0xc], ebx
mov eax, dword [esi]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x4966f4
push str.CVirtAutoUpdate::CheckForNewVersion:_unknown_protocol___XML_path_
call fcn.004af97a
add esp, 4
push eax
push str.CVirtAutoUpdate::CheckForNewVersion:_unknown_protocol___XML_path_
mov ecx, esi
call fcn.0042423a
mov byte [ebp - 4], 1
call fcn.004949b0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add esp, 4
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496723
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496749
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4