Function at 0x4378af
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x548
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x504], esi
mov dword [ebp - 0x500], esi
mov dword [ebp - 0x52c], esi
mov dword [ebp - 0x530], esi
push edi
mov edi, ecx
mov dword [ebp - 0x540], edi
test ebx, ebx
jne 0x4378fa
mov eax, 0x80004003
jmp 0x43827d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x409d78
push 4
call fcn.0041ea5f
add esp, 0x10
xor edx, edx
mov ecx, ebx
push esi
push esi
call fcn.0042129f
test eax, eax
jns 0x43793b
push eax
push ebx
push 0x409db4
push 2
call fcn.0041ea5f
add esp, 0x10
mov eax, 0x80004005
jmp 0x43827d
lea ecx, [ebp - 0x520]
mov dword [ebp - 0x520], esi
mov dword [ebp - 0x51c], esi
mov dword [ebp - 0x518], esi
mov dword [ebp - 0x514], esi
mov dword [ebp - 0x510], esi
call fcn.0043e664
test eax, eax
jne 0x4379a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x437979
push 0x57
pop esi
test esi, esi
jle 0x437984
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43798d
mov esi, 0x80004005
push esi
push ebx
push 0x409df0
push 2
call fcn.0041ea5f
add esp, 0x10
jmp 0x438266
mov ecx, dword [ebp - 0x520]
lea eax, [ebp - 0x500]
push esi
push 0x40a924
push eax
call dword [0x446624]
call dword [ebp - 0x520]
test eax, eax
jne 0x4379f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4379d7
push 0x57
pop esi
test esi, esi
jle 0x4379e2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x438234
mov esi, 0x8007000d
jmp 0x438234
mov edx, dword [edi + 0x10]
test edx, edx
je 0x438261
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x504]
jne 0x437a04
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
cmp eax, 0x208
jae 0x438261
push edx
mov edi, 0x104
lea ecx, [ebp - 0x214]
mov edx, edi
call fcn.0040c010
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push ebx
mov edx, edi
lea ecx, [ebp - 0x214]
call fcn.0040c045
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43825a
test al, 0x10
jne 0x43825a
cmp dword [0x443534], 0xffffffff
jne 0x437a83
push ecx
push 4
pop edx
call fcn.0041e530
push 4
mov edx, 0x409e48
pop ecx
call fcn.0041e988
push 0x208
call fcn.0044183a
mov dword [ebp - 0x504], eax
pop ecx
test eax, eax
je 0x4381e4
push ecx
lea edx, [ebp - 0x214]
mov ecx, eax
call fcn.004366ff
test eax, eax
js 0x4381b0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x4000
je 0x437b41
xor eax, eax
lea ecx, [ebp - 0x50c]
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x508], eax
call fcn.0041eb51
test eax, eax
je 0x437b2d
mov ecx, dword [ebp - 0x50c]
xor eax, eax
push eax
lea eax, [ebp - 0x214]
push eax
call dword [0x446624]
call dword [ebp - 0x50c]
test eax, eax
jne 0x437b2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x404ad8
push 2
call fcn.0041ea5f
add esp, 0x10
cmp dword [ebp - 0x508], esi
je 0x437b41
push dword [ebp - 0x508]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x514]
xor eax, eax
push eax
push dword [ebp - 0x504]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x500]
call dword [0x446624]
call dword [ebp - 0x514]
mov dword [ebp - 0x52c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x409ea0
push 4
call fcn.0041ea5f
add esp, 0x10
cmp dword [0x444fc8], esi
jne 0x4381b0
xor eax, eax
inc eax
mov dword [0x444fc8], eax
lea eax, [ebp - 0x41c]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4381b0
xor eax, eax
mov edx, edi
mov dword [ebp - 0x4f0], eax
mov dword [ebp - 0x4f8], eax
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 0x4fc], eax
lea eax, [ebp - 0x4e0]
push ecx
push eax
lea ecx, [ebp - 0x41c]
call fcn.0040c131
test eax, eax
js 0x437c06
mov eax, dword [ebp - 0x4e0]
sub edi, eax
push ecx
push 0x409ed0
push ecx
lea ecx, [ebp - 0x41c]
mov edx, edi
lea ecx, [ecx + eax*2]
call fcn.0040c197
lea eax, [ebp - 0x4e4]
xor edi, edi
push eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x4e4], edi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x4e8], eax
mov dword [ebp - 0x524], 0x3c
mov dword [ebp - 0x528], 0xffff
mov dword [ebp - 0x4e0], 0x18
test eax, eax
jne 0x437e54
lea ecx, [ebp - 0x41c]
call fcn.0041f47f
test eax, eax
je 0x4381b2
push edi
push 0x80
push 3
xor eax, eax
push edi
inc eax
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4e8], eax
cmp eax, 0xffffffff
je 0x4381b2
lea ecx, [ebp - 0x548]
mov edi, 0x80004005
push ecx
xor ecx, ecx
mov dword [ebp - 0x4ec], edi
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x437e43
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x548]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x437e43
xor eax, eax
push 0xac
push eax
lea eax, [ebp - 0x4dc]
push eax
call sub.msvcrt.dll_memset
movzx eax, word [ebp - 0x42c]
add esp, 0xc
movzx ecx, word [ebp - 0x42a]
mov dword [ebp - 0x4f0], eax
movzx eax, word [ebp - 0x426]
shl ecx, 0x10
or ecx, eax
xor eax, eax
mov dword [ebp - 0x4ec], eax
lea eax, [ebp - 0x4dc]
push eax
mov dword [ebp - 0x4f8], ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x437e43
mov ecx, dword [ebp - 0x4dc]
test ecx, ecx
jle 0x437d36
movzx eax, cx
jmp 0x437d3d
mov eax, ecx
neg eax
movzx eax, ax
movzx eax, ax
xor edx, edx
div dword [ebp - 0x524]
movzx edx, ax
xor eax, eax
inc eax
cmp ecx, eax
mov ax, word [ebp - 0x424]
mov cx, word [ebp - 0x426]
jge 0x437d65
add ax, dx
jmp 0x437d82
cmp ax, dx
jae 0x437d7f
add cx, word [ebp - 0x528]
add ax, word [ebp - 0x4e0]
mov word [ebp - 0x426], cx
sub ax, dx
push 0x17
pop edx
mov word [ebp - 0x424], ax
cmp ax, dx
jbe 0x437de1
mov edx, 0xffe8
add ax, dx
inc cx
push 0x20
mov word [ebp - 0x424], ax
pop eax
mov word [ebp - 0x426], cx
cmp cx, ax
jne 0x437de1
mov ax, word [ebp - 0x42a]
xor ecx, ecx
inc ecx
inc ax
push 0xd
pop edx
mov word [ebp - 0x426], cx
mov word [ebp - 0x42a], ax
cmp ax, dx
jne 0x437de1
inc word [ebp - 0x42c]
mov word [ebp - 0x42a], cx
fldz
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x42c]
push eax
fstp qword [ebp - 0x53c]
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x437e43
fld qword [ebp - 0x53c]
lea eax, [ebp - 0x42c]
push eax
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x437e43
movzx eax, word [ebp - 0x42c]
movzx ecx, word [ebp - 0x42a]
mov dword [ebp - 0x4f0], eax
movzx eax, word [ebp - 0x426]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x4f8], ecx
push dword [ebp - 0x4e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x437ed4
push eax
call fcn.0044183a
mov edi, eax
pop ecx
test edi, edi
je 0x4381b0
push edi
push dword [ebp - 0x4e8]
xor eax, eax
mov dword [ebp - 0x4ec], 0x80004005
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x437ec8
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x4e8]
push eax
push 0x4043e0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x437ec8
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x4f8], eax
xor eax, eax
mov dword [ebp - 0x4f0], ecx
mov dword [ebp - 0x4ec], eax
push edi
call fcn.00441807
pop ecx
mov edi, 0x80004005
cmp dword [ebp - 0x4ec], esi
jne 0x4381b0
xor eax, eax
mov dword [ebp - 0x4e8], eax
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x4e4], eax
test eax, eax
jne 0x438101
lea ecx, [ebp - 0x214]
call fcn.0041f47f
test eax, eax
je 0x4381b0
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4e4], eax
cmp eax, 0xffffffff
je 0x4381b0
lea ecx, [ebp - 0x548]
push ecx
xor ecx, ecx
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4380f0
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x548]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x4380f0
xor eax, eax
push 0xac
push eax
lea eax, [ebp - 0x4dc]
push eax
call sub.msvcrt.dll_memset
movzx eax, word [ebp - 0x42c]
add esp, 0xc
movzx edi, word [ebp - 0x42a]
mov dword [ebp - 0x4f4], eax
movzx eax, word [ebp - 0x426]
shl edi, 0x10
or edi, eax
xor eax, eax
mov dword [ebp - 0x4fc], edi
mov edi, eax
lea eax, [ebp - 0x4dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x4380f0
mov ecx, dword [ebp - 0x4dc]
test ecx, ecx
jle 0x437fe3
movzx eax, cx
jmp 0x437fea
mov eax, ecx
neg eax
movzx eax, ax
movzx eax, ax
xor edx, edx
div dword [ebp - 0x524]
movzx edx, ax
xor eax, eax
inc eax
cmp ecx, eax
mov ax, word [ebp - 0x424]
mov cx, word [ebp - 0x426]
jge 0x438012
add ax, dx
jmp 0x43802f
cmp ax, dx
jae 0x43802c
add cx, word [ebp - 0x528]
add ax, word [ebp - 0x4e0]
mov word [ebp - 0x426], cx
sub ax, dx
push 0x17
pop edx
mov word [ebp - 0x424], ax
cmp ax, dx
jbe 0x43808e
mov edx, 0xffe8
add ax, dx
inc cx
push 0x20
mov word [ebp - 0x424], ax
pop eax
mov word [ebp - 0x426], cx
cmp cx, ax
jne 0x43808e
mov ax, word [ebp - 0x42a]
xor ecx, ecx
inc ecx
inc ax
push 0xd
pop edx
mov word [ebp - 0x426], cx
mov word [ebp - 0x42a], ax
cmp ax, dx
jne 0x43808e
inc word [ebp - 0x42c]
mov word [ebp - 0x42a], cx
fldz
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x42c]
push eax
fstp qword [ebp - 0x53c]
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x4380f0
fld qword [ebp - 0x53c]
lea eax, [ebp - 0x42c]
push eax
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x4380f0
movzx eax, word [ebp - 0x42c]
movzx ecx, word [ebp - 0x42a]
mov dword [ebp - 0x4f4], eax
movzx eax, word [ebp - 0x426]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x4fc], ecx
push dword [ebp - 0x4e4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x438182
push eax
call fcn.0044183a
mov edi, eax
pop ecx
test edi, edi
je 0x4381b0
push edi
push dword [ebp - 0x4e4]
xor eax, eax
mov dword [ebp - 0x4e0], 0x80004005
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x438175
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x4e4]
push eax
push 0x4043e0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x438175
mov eax, dword [ebp - 0x4e4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x4f4], ecx
xor ecx, ecx
mov dword [ebp - 0x4fc], eax
mov dword [ebp - 0x4e0], ecx
push edi
call fcn.00441807
mov edi, dword [ebp - 0x4e0]
pop ecx
test edi, edi
jne 0x4381b0
mov eax, dword [ebp - 0x4f0]
cmp dword [ebp - 0x4f4], eax
jne 0x4381a2
mov eax, dword [ebp - 0x4f8]
cmp dword [ebp - 0x4fc], eax
je 0x4381b0
xor eax, eax
inc eax
mov dword [0x444fc8], eax
mov dword [ebp - 0x530], eax
xor edi, edi
push dword [ebp - 0x504]
call fcn.00441807
mov eax, dword [ebp - 0x52c]
pop ecx
test eax, eax
je 0x4381e4
mov ecx, dword [ebp - 0x518]
push edi
push eax
push dword [ebp - 0x500]
call dword [0x446624]
call dword [ebp - 0x518]
jmp 0x438215
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4381fb
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x438202
mov esi, 0x8007000d
push esi
push ebx
push 0x409f48
push 2
call fcn.0041ea5f
add esp, 0x10
xor edi, edi
mov ecx, dword [ebp - 0x51c]
push edi
push dword [ebp - 0x500]
call dword [0x446624]
call dword [ebp - 0x51c]
mov edi, dword [ebp - 0x540]
push esi
push ebx
push 0x409f7c
push 4
call fcn.0041ea5f
add esp, 0x10
cmp dword [ebp - 0x530], 0
je 0x438266
push ebx
mov ecx, edi
call fcn.004378af
mov esi, eax
jmp 0x438266
mov esi, 0x80070002
jmp 0x438266
mov esi, 0x8000ffff
cmp dword [ebp - 0x510], 0
je 0x43827b
push dword [ebp - 0x510]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 4