Function at 0x4371f2
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 [0x4424f4]
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 0x43723d
mov eax, 0x80004003
jmp 0x437bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x409d88
push 4
call fcn.0041e83a
add esp, 0x10
xor edx, edx
mov ecx, ebx
push esi
push esi
call fcn.00421008
test eax, eax
jns 0x43727e
push eax
push ebx
push 0x409dc4
push 2
call fcn.0041e83a
add esp, 0x10
mov eax, 0x80004005
jmp 0x437bc0
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.0043de1e
test eax, eax
jne 0x4372e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4372bc
push 0x57
pop esi
test esi, esi
jle 0x4372c7
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4372d0
mov esi, 0x80004005
push esi
push ebx
push 0x409e00
push 2
call fcn.0041e83a
add esp, 0x10
jmp 0x437ba9
mov ecx, dword [ebp - 0x520]
lea eax, [ebp - 0x500]
push esi
push fcn.0040a934
push eax
call dword [0x445628]
call dword [ebp - 0x520]
test eax, eax
jne 0x437337
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x43731a
push 0x57
pop esi
test esi, esi
jle 0x437325
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x437b77
mov esi, 0x8007000d
jmp 0x437b77
mov edx, dword [edi + 0x10]
test edx, edx
je 0x437ba4
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x504]
jne 0x437347
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
cmp eax, 0x208
jae 0x437ba4
push edx
mov edi, 0x104
lea ecx, [ebp - 0x214]
mov edx, edi
call fcn.0040c040
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push ebx
mov edx, edi
lea ecx, [ebp - 0x214]
call fcn.0040c075
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x437b9d
test al, 0x10
jne 0x437b9d
cmp dword [0x442534], 0xffffffff
jne 0x4373c6
push ecx
push 4
pop edx
call fcn.0041e30f
push 4
mov edx, 0x409e58
pop ecx
call fcn.0041e767
push 0x208
call fcn.00440dea
mov dword [ebp - 0x504], eax
pop ecx
test eax, eax
je 0x437b27
push ecx
lea edx, [ebp - 0x214]
mov ecx, eax
call fcn.0043606a
test eax, eax
js 0x437af3
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x4000
je 0x437484
xor eax, eax
lea ecx, [ebp - 0x50c]
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x508], eax
call fcn.0041e928
test eax, eax
je 0x437470
mov ecx, dword [ebp - 0x50c]
xor eax, eax
push eax
lea eax, [ebp - 0x214]
push eax
call dword [0x445628]
call dword [ebp - 0x50c]
test eax, eax
jne 0x437470
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x404ae8
push 2
call fcn.0041e83a
add esp, 0x10
cmp dword [ebp - 0x508], esi
je 0x437484
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 [0x445628]
call dword [ebp - 0x514]
mov dword [ebp - 0x52c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x409eb0
push 4
call fcn.0041e83a
add esp, 0x10
cmp dword [0x443fc8], esi
jne 0x437af3
xor eax, eax
inc eax
mov dword [0x443fc8], eax
lea eax, [ebp - 0x41c]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x437af3
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.0040c15d
test eax, eax
js 0x437549
mov eax, dword [ebp - 0x4e0]
sub edi, eax
push ecx
push 0x409ee0
push ecx
lea ecx, [ebp - 0x41c]
mov edx, edi
lea ecx, [ecx + eax*2]
call fcn.0040c1c3
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 0x437797
lea ecx, [ebp - 0x41c]
call fcn.0041f21e
test eax, eax
je 0x437af5
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 0x437af5
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 0x437786
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x548]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x437786
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 0x437786
mov ecx, dword [ebp - 0x4dc]
test ecx, ecx
jle 0x437679
movzx eax, cx
jmp 0x437680
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 0x4376a8
add ax, dx
jmp 0x4376c5
cmp ax, dx
jae 0x4376c2
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 0x437724
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 0x437724
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 0x437724
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 0x437786
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 0x437786
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 0x437817
push eax
call fcn.00440dea
mov edi, eax
pop ecx
test edi, edi
je 0x437af3
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 0x43780b
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x4e8]
push eax
push 0x4043f0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x43780b
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.00440db7
pop ecx
mov edi, 0x80004005
cmp dword [ebp - 0x4ec], esi
jne 0x437af3
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 0x437a44
lea ecx, [ebp - 0x214]
call fcn.0041f21e
test eax, eax
je 0x437af3
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 0x437af3
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 0x437a33
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x548]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x437a33
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 0x437a33
mov ecx, dword [ebp - 0x4dc]
test ecx, ecx
jle 0x437926
movzx eax, cx
jmp 0x43792d
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 0x437955
add ax, dx
jmp 0x437972
cmp ax, dx
jae 0x43796f
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 0x4379d1
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 0x4379d1
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 0x4379d1
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 0x437a33
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 0x437a33
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 0x437ac5
push eax
call fcn.00440dea
mov edi, eax
pop ecx
test edi, edi
je 0x437af3
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 0x437ab8
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x4e4]
push eax
push 0x4043f0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x437ab8
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.00440db7
mov edi, dword [ebp - 0x4e0]
pop ecx
test edi, edi
jne 0x437af3
mov eax, dword [ebp - 0x4f0]
cmp dword [ebp - 0x4f4], eax
jne 0x437ae5
mov eax, dword [ebp - 0x4f8]
cmp dword [ebp - 0x4fc], eax
je 0x437af3
xor eax, eax
inc eax
mov dword [0x443fc8], eax
mov dword [ebp - 0x530], eax
xor edi, edi
push dword [ebp - 0x504]
call fcn.00440db7
mov eax, dword [ebp - 0x52c]
pop ecx
test eax, eax
je 0x437b27
mov ecx, dword [ebp - 0x518]
push edi
push eax
push dword [ebp - 0x500]
call dword [0x445628]
call dword [ebp - 0x518]
jmp 0x437b58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x437b3e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x437b45
mov esi, 0x8007000d
push esi
push ebx
push 0x409f58
push 2
call fcn.0041e83a
add esp, 0x10
xor edi, edi
mov ecx, dword [ebp - 0x51c]
push edi
push dword [ebp - 0x500]
call dword [0x445628]
call dword [ebp - 0x51c]
mov edi, dword [ebp - 0x540]
push esi
push ebx
push 0x409f8c
push 4
call fcn.0041e83a
add esp, 0x10
cmp dword [ebp - 0x530], 0
je 0x437ba9
push ebx
mov ecx, edi
call fcn.004371f2
mov esi, eax
jmp 0x437ba9
mov esi, 0x80070002
jmp 0x437ba9
mov esi, 0x8000ffff
cmp dword [ebp - 0x510], 0
je 0x437bbe
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.00441130
leave
ret 4