Function at 0x42a6e0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d86f6
mov eax, dword fs:[0]
push eax
mov eax, 0x1470
call fcn.005a9b50
mov eax, dword [0x65bfd4]
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 dword [ebp - 0x1478], edx
mov eax, ecx
mov dword [ebp - 0x1474], eax
mov ecx, dword [ebp + 8]
mov dword [eax], 0
lea eax, [ebp - 0x1460]
push 0x1450
mov dword [edx], 0
push eax
mov dword [ebp - 0x147c], ecx
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42a758
xor al, al
jmp 0x42ab15
call fcn.0040cb60
mov ecx, eax
test ecx, ecx
je 0x42ab31
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x42ab3b
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1464], esi
lea eax, [ebp - 0x1460]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x42a7b5
movzx eax, ax
lea ecx, [ebp - 0x1464]
push eax
call fcn.0040d3d0
mov esi, dword [ebp - 0x1464]
jmp 0x42a92c
lea edi, [ebp - 0x1460]
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x42a7c0
sub edi, ecx
sar edi, 1
jne 0x42a878
cmp dword [esi - 0xc], 0
lea ecx, [esi - 0x10]
mov edi, dword [ecx]
je 0x42a92c
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
jge 0x42a808
cmp dword [esi - 8], 0
jl 0x42ab42
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x42a92c
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x42a845
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x42ab4c
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x42ab4c
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x42ab55
lock inc dword [edi + 0x14]
lea eax, [edi + 8]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1464], esi
jmp 0x42a92c
lea esi, [eax + 0x10]
mov dword [ebp - 0x1464], esi
jmp 0x42a92c
mov eax, dword [esi - 0xc]
lea ebx, [ebp - 0x1460]
sub ebx, esi
mov dword [ebp - 0x1468], eax
sar ebx, 1
test edi, edi
js 0x42ab5e
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x42a8b6
push edi
lea ecx, [ebp - 0x1464]
call fcn.00401fd8
mov esi, dword [ebp - 0x1464]
cmp ebx, dword [ebp - 0x1468]
ja 0x42a906
mov eax, dword [esi - 8]
lea ecx, [edi + edi]
lea edx, [esi + ebx*2]
test ecx, ecx
je 0x42a91a
test edx, edx
jne 0x42a8e1
call fcn.005b0782
mov dword [eax], 0x16
call fcn.005b06a9
jmp 0x42a91a
add eax, eax
cmp eax, ecx
jae 0x42a8f9
call fcn.005b0782
mov dword [eax], 0x22
call fcn.005b06a9
jmp 0x42a91a
push ecx
push edx
push esi
call fcn.005ad520
add esp, 0xc
jmp 0x42a91a
push edi
lea eax, [ebp - 0x1460]
push eax
push dword [esi - 8]
push esi
call fcn.004021b4
add esp, 0x10
cmp edi, dword [esi - 8]
jg 0x42ab42
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov dword [ebp - 4], 1
xor edi, edi
movzx eax, word [esi]
mov ebx, esi
test ax, ax
je 0x42a988
mov ecx, eax
push ecx
push 0x62a734
call fcn.005acece
add esp, 8
test eax, eax
je 0x42a95e
test edi, edi
mov eax, ebx
cmovne eax, edi
mov edi, eax
jmp 0x42a960
xor edi, edi
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x42a941
test edi, edi
je 0x42a988
sub edi, esi
lea ecx, [ebp - 0x1464]
sar edi, 1
push edi
call fcn.00414830
mov esi, dword [ebp - 0x1464]
mov edi, dword [esi - 0xc]
mov ebx, 0x62a73c
push 0xd
sub ebx, esi
mov dword [ebp - 0x146c], edi
push 0x62a73c
sar ebx, 1
call fcn.005b318a
mov edx, eax
mov ecx, SysReAllocString
sub ecx, edx
mov dword [ebp - 0x1468], edx
add esp, 8
cmp ecx, edi
jl 0x42ab68
add edi, edx
js 0x42ab72
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x42a9f1
push edi
lea ecx, [ebp - 0x1464]
call fcn.00401fd8
mov esi, dword [ebp - 0x1464]
mov edx, dword [ebp - 0x1468]
mov eax, dword [ebp - 0x146c]
lea ecx, [esi + ebx*2]
cmp ebx, eax
jbe 0x42aa03
mov ecx, 0x62a73c
push edx
push ecx
push edx
lea eax, [esi + eax*2]
push eax
call fcn.004021b4
add esp, 0x10
cmp edi, dword [esi - 8]
jg 0x42ab42
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea eax, [ebp - 0x1470]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
push edi
call fcn.004627e5
add esp, 4
mov ebx, eax
push ebx
push edi
push dword [ebp - 0x1470]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42aac4
lea eax, [ebp - 0x146c]
mov dword [ebp - 0x1468], 0
push eax
lea eax, [ebp - 0x1468]
mov dword [ebp - 0x146c], 0
push eax
push 0x62b218
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42aab7
cmp dword [ebp - 0x146c], 0
je 0x42aab7
mov ecx, dword [ebp - 0x1468]
mov edx, dword [ebp - 0x1474]
movzx eax, word [ecx + 0x12]
mov dword [edx], eax
movzx eax, word [ecx + 0x10]
mov edx, dword [ebp - 0x1478]
mov dword [edx], eax
movzx eax, word [ecx + 0x16]
mov ecx, dword [ebp - 0x147c]
mov dword [ecx], eax
push ebx
call fcn.004627e0
add esp, 4
mov bl, 1
jmp 0x42aacf
push ebx
call fcn.004627e0
add esp, 4
xor bl, bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42ab13
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x42ab7c
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x42ab7c
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
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.005a909b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004022df
call edx
jmp 0x42a77e
push 0x80070057
call fcn.004022df
mov ecx, edx
call esi
jmp 0x42a845
mov ecx, edi
call edx
jmp 0x42a86a
push 0x80070057
call fcn.004022df
push 0x80070057
call fcn.004022df
push 0x80070057
call fcn.004022df
call edx
jmp 0x42ab13