Function at 0x411160
Capabilities:
Check if file exists
Get file attributes
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454a31
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x46c018]
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 ebx, ecx
mov dword [ebp - 0x654], ebx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4111a8
xor al, al
jmp 0x41160d
call fcn.00402c30
mov ecx, eax
test ecx, ecx
je 0x411629
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x644], eax
push ebx
lea ecx, [ebp - 0x644]
mov dword [ebp - 4], 0
call fcn.0040e500
test al, al
jne 0x41120c
test ebx, ebx
jne 0x4111e4
xor ecx, ecx
jmp 0x4111ff
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4111f0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x644]
call fcn.0040e740
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x644]
mov esi, dword [edi - 0xc]
test esi, esi
js 0x411633
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x411247
push esi
lea ecx, [ebp - 0x644]
call fcn.0040f350
mov edi, dword [ebp - 0x644]
lea eax, [esi + 1]
push eax
push edi
call fcn.0043b4e0
add esp, 8
cmp esi, dword [edi - 8]
jg 0x411633
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
mov dword [ebp - 0x650], eax
nop dword [eax]
mov esi, dword [eax + 0x463360]
call fcn.00402c30
mov ecx, eax
test ecx, ecx
je 0x411629
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x648], eax
push esi
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 2
call fcn.0040e500
test al, al
jne 0x4112d0
test esi, esi
jne 0x4112af
xor ecx, ecx
jmp 0x4112c3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4112b4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x648]
call fcn.0040e740
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x648]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x411633
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x411308
push ebx
lea ecx, [ebp - 0x648]
call fcn.0040f350
mov esi, dword [ebp - 0x648]
lea eax, [ebx + 1]
push eax
push esi
call fcn.0043b4e0
lea edx, [esi - 0x10]
add esp, 8
mov dword [ebp - 0x64c], edx
cmp ebx, dword [edx + 8]
jg 0x411633
xor eax, eax
mov dword [edx + 4], ebx
mov word [esi + ebx*2], ax
test esi, esi
je 0x411359
cmp dword [edi - 0xc], eax
jl 0x411359
push esi
push edi
call fcn.0042e63e
add esp, 8
test eax, eax
je 0x411353
sub eax, edi
sar eax, 1
test eax, eax
jg 0x4115cc
mov edx, dword [ebp - 0x64c]
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411372
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x650]
add eax, 4
mov dword [ebp - 0x650], eax
cmp eax, 0x7c
jb 0x411270
mov ebx, dword [ebp - 0x654]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4115f1
push ebx
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x4115f1
push 0x20a
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.0042f000
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x20a
push 0
push eax
call fcn.0042f000
add esp, 0xc
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x650], 0
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x4115f1
push ebx
call fcn.0042d704
add esp, 4
mov esi, eax
push esi
push ebx
push 0
push dword [ebp - 0x654]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4115e8
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x650]
push eax
push str.VarFileInfoTranslation
push esi
call ebx
test eax, eax
je 0x4115e8
push 0x20a
lea eax, [ebp - 0x640]
push 0
push eax
call fcn.0042f000
mov ecx, dword [ebp - 0x650]
add esp, 0xc
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00411db0
add esp, 0x14
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
test eax, eax
je 0x4114d9
cmp dword [ebp - 0x64c], 0
jbe 0x4114d9
push 0x104
push dword [ebp - 0x648]
lea eax, [ebp - 0x640]
push eax
call edi
push 0x104
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x430]
push eax
call edi
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0042f000
add esp, 0xc
push esi
call fcn.0042d70d
lea ecx, [ebp - 0x430]
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411516
sub ecx, edx
lea eax, [ebp - 0x430]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x644]
call fcn.0040e740
mov edi, dword [ebp - 0x644]
mov esi, dword [edi - 0xc]
test esi, esi
js 0x411633
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or ecx, eax
jge 0x41156c
push esi
lea ecx, [ebp - 0x644]
call fcn.0040f350
mov edi, dword [ebp - 0x644]
lea eax, [esi + 1]
push eax
push edi
call fcn.0043b4e0
add esp, 8
cmp esi, dword [edi - 8]
jg 0x411633
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
cmp dword [edi - 0xc], eax
jl 0x4115aa
push 0x46361c
push edi
call fcn.0042e63e
add esp, 8
test eax, eax
je 0x4115aa
sub eax, edi
sar eax, 1
test eax, eax
jg 0x4115c8
cmp dword [edi - 0xc], 0
jl 0x4115c8
push str.TENCENT
push edi
call fcn.0042e63e
add esp, 8
test eax, eax
je 0x4115c8
sub eax, edi
sar eax, 1
je 0x4115f1
mov bl, 1
jmp 0x4115f3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4115c8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
jmp 0x4115f3
push esi
call fcn.0042d70d
add esp, 4
xor bl, bl
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41160b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0042cd02
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040f2e0
push 0x80070057
call fcn.0040f2e0
int3