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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455a41
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x46e018]
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 0x412208
xor al, al
jmp 0x41266d
call fcn.00402ca0
mov ecx, eax
test ecx, ecx
je 0x412689
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.0040f570
test al, al
jne 0x41226c
test ebx, ebx
jne 0x412244
xor ecx, ecx
jmp 0x41225f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412250
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x644]
call fcn.0040f7b0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x644]
mov esi, dword [edi - 0xc]
test esi, esi
js 0x412693
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4122a7
push esi
lea ecx, [ebp - 0x644]
call fcn.004104b0
mov edi, dword [ebp - 0x644]
lea eax, [esi + 1]
push eax
push edi
call fcn.0043c420
add esp, 8
cmp esi, dword [edi - 8]
jg 0x412693
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 + 0x464370]
call fcn.00402ca0
mov ecx, eax
test ecx, ecx
je 0x412689
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.0040f570
test al, al
jne 0x412330
test esi, esi
jne 0x41230f
xor ecx, ecx
jmp 0x412323
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412314
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x648]
call fcn.0040f7b0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x648]
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x412693
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x412368
push ebx
lea ecx, [ebp - 0x648]
call fcn.004104b0
mov esi, dword [ebp - 0x648]
lea eax, [ebx + 1]
push eax
push esi
call fcn.0043c420
lea edx, [esi - 0x10]
add esp, 8
mov dword [ebp - 0x64c], edx
cmp ebx, dword [edx + 8]
jg 0x412693
xor eax, eax
mov dword [edx + 4], ebx
mov word [esi + ebx*2], ax
test esi, esi
je 0x4123b9
cmp dword [edi - 0xc], eax
jl 0x4123b9
push esi
push edi
call fcn.0042f57e
add esp, 8
test eax, eax
je 0x4123b3
sub eax, edi
sar eax, 1
test eax, eax
jg 0x41262c
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 0x4123d2
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 0x4122d0
mov ebx, dword [ebp - 0x654]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x412651
push ebx
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x412651
push 0x20a
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.0042ff40
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x20a
push 0
push eax
call fcn.0042ff40
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 0x412651
push ebx
call fcn.0042e644
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 0x412648
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 0x412648
push 0x20a
lea eax, [ebp - 0x640]
push 0
push eax
call fcn.0042ff40
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.00412cd0
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 0x412539
cmp dword [ebp - 0x64c], 0
jbe 0x412539
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.0042ff40
add esp, 0xc
push esi
call fcn.0042e64d
lea ecx, [ebp - 0x430]
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412576
sub ecx, edx
lea eax, [ebp - 0x430]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x644]
call fcn.0040f7b0
mov edi, dword [ebp - 0x644]
mov esi, dword [edi - 0xc]
test esi, esi
js 0x412693
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or ecx, eax
jge 0x4125cc
push esi
lea ecx, [ebp - 0x644]
call fcn.004104b0
mov edi, dword [ebp - 0x644]
lea eax, [esi + 1]
push eax
push edi
call fcn.0043c420
add esp, 8
cmp esi, dword [edi - 8]
jg 0x412693
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
cmp dword [edi - 0xc], eax
jl 0x41260a
push 0x464634
push edi
call fcn.0042f57e
add esp, 8
test eax, eax
je 0x41260a
sub eax, edi
sar eax, 1
test eax, eax
jg 0x412628
cmp dword [edi - 0xc], 0
jl 0x412628
push str.TENCENT
push edi
call fcn.0042f57e
add esp, 8
test eax, eax
je 0x412628
sub eax, edi
sar eax, 1
je 0x412651
mov bl, 1
jmp 0x412653
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412628
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
jmp 0x412653
push esi
call fcn.0042e64d
add esp, 4
xor bl, bl
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41266b
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.0042dc42
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00410440
push 0x80070057
call fcn.00410440
int3