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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push edi
push eax
mov edi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10144fa8
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
push esi
mov esi, dword [edi + 0x154]
test esi, esi
je 0x10144fba
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x134], 0
push ebx
jne 0x10144fd3
push 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x1014522c
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1014505a
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x1014505a
push eax
push dword [ebp - 0x14]
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10145036
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x10202944
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
call sub.msvcrt.dll_free
add esp, 4
cmp dword [ebp - 0xc], 0x20000
jne 0x1014505a
cmp dword [ebp - 0x10], 0x3ef
ja 0x1014505a
mov eax, 1
jmp 0x1014505c
xor eax, eax
mov dword [edi + 0x138], eax
cmp dword [edi + 0x12c], ebx
jne 0x101451ff
push dword [ebp + 8]
call fcn.101458f0
mov dword [edi + 0x130], eax
test eax, eax
je 0x101451fa
lea eax, [edi + 4]
mov dword [edi + 0x12c], 1
mov dword [ebp + 8], eax
xor ebx, ebx
jmp 0x101450a0
push dword [ebx + 0x10217678]
push dword [edi + 0x130]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x101450d4
add ebx, 4
add ecx, 4
mov dword [ebp + 8], ecx
cmp ebx, 0x128
jb 0x101450a0
mov eax, dword [edi + 0x12c]
jmp 0x101450e7
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edi + 0x12c], 0
test eax, eax
je 0x101451df
mov ebx, dword [0x102568c0]
test ebx, ebx
jne 0x10145106
call fcn.10003850
mov ebx, eax
mov dword [0x102568c0], ebx
cmp dword [ebx + 0x12c], 0
je 0x10145126
call fcn.10145670
test eax, eax
je 0x10145126
cmp dword [ebx + 0x12c], 0
je 0x10145126
mov eax, dword [ebx + 0x18]
jmp 0x10145128
xor eax, eax
test eax, eax
jne 0x10145139
mov dword [edi + 0x12c], eax
xor edi, edi
jmp 0x1014522c
push 0
call eax
mov dword [edi + 0x12c], eax
test eax, eax
je 0x101451d8
push str.JudgeVersion
push dword [edi + 0x130]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10145176
call eax
mov dword [edi + 0x12c], eax
test eax, eax
jne 0x10145171
lea ebx, [eax + 5]
jmp 0x10145187
mov ebx, dword [ebp - 4]
jmp 0x10145187
mov dword [edi + 0x12c], 0
mov ebx, 3
xor eax, eax
test eax, eax
je 0x101451e2
push 0
call fcn.10003680
add esp, 4
test eax, eax
je 0x101451a1
call eax
mov dword [edi + 0x12c], eax
cmp dword [edi + 0x12c], 0
jne 0x101451af
mov ebx, 6
push 2
call fcn.10003680
add esp, 4
test eax, eax
je 0x101451c5
call eax
mov dword [edi + 0x12c], eax
mov eax, dword [edi + 0x12c]
test eax, eax
jne 0x101451ff
lea ebx, [eax + 6]
test eax, eax
jne 0x101451ff
jmp 0x101451e2
mov ebx, 4
jmp 0x101451e2
mov ebx, dword [ebp - 4]
push dword [edi + 0x130]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x130], 0
jmp 0x101451ff
mov ebx, 2
cmp dword [edi + 0x12c], 0
je 0x1014521f
push str.ExpandFilePathW
push dword [edi + 0x130]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x158], eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [edi + 0x12c]
pop ebx
test esi, esi
je 0x10145238
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4