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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d70f6
mov eax, dword fs:[0]
push eax
mov eax, 0x1470
call fcn.005a8610
mov eax, dword [0x659fd4]
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 0x42a4e8
xor al, al
jmp 0x42a8a5
call fcn.0040cce6
mov ecx, eax
test ecx, ecx
je 0x42a8c1
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x42a8cb
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 0x42a545
movzx eax, ax
lea ecx, [ebp - 0x1464]
push eax
call fcn.0040d540
mov esi, dword [ebp - 0x1464]
jmp 0x42a6bc
lea edi, [ebp - 0x1460]
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x42a550
sub edi, ecx
sar edi, 1
jne 0x42a608
cmp dword [esi - 0xc], 0
lea ecx, [esi - 0x10]
mov edi, dword [ecx]
je 0x42a6bc
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
jge 0x42a598
cmp dword [esi - 8], 0
jl 0x42a8d2
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x42a6bc
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x42a5d5
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x42a8dc
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x42a8dc
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 0x42a8e5
lock inc dword [edi + 0x14]
lea eax, [edi + 8]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1464], esi
jmp 0x42a6bc
lea esi, [eax + 0x10]
mov dword [ebp - 0x1464], esi
jmp 0x42a6bc
mov eax, dword [esi - 0xc]
lea ebx, [ebp - 0x1460]
sub ebx, esi
mov dword [ebp - 0x1468], eax
sar ebx, 1
test edi, edi
js 0x42a8ee
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x42a646
push edi
lea ecx, [ebp - 0x1464]
call fcn.00401fd8
mov esi, dword [ebp - 0x1464]
cmp ebx, dword [ebp - 0x1468]
ja 0x42a696
mov eax, dword [esi - 8]
lea ecx, [edi + edi]
lea edx, [esi + ebx*2]
test ecx, ecx
je 0x42a6aa
test edx, edx
jne 0x42a671
call fcn.005af242
mov dword [eax], 0x16
call fcn.005af169
jmp 0x42a6aa
add eax, eax
cmp eax, ecx
jae 0x42a689
call fcn.005af242
mov dword [eax], 0x22
call fcn.005af169
jmp 0x42a6aa
push ecx
push edx
push esi
call fcn.005abfe0
add esp, 0xc
jmp 0x42a6aa
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 0x42a8d2
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 0x42a718
mov ecx, eax
push ecx
push 0x629614
call fcn.005ab98e
add esp, 8
test eax, eax
je 0x42a6ee
test edi, edi
mov eax, ebx
cmovne eax, edi
mov edi, eax
jmp 0x42a6f0
xor edi, edi
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x42a6d1
test edi, edi
je 0x42a718
sub edi, esi
lea ecx, [ebp - 0x1464]
sar edi, 1
push edi
call fcn.004148d0
mov esi, dword [ebp - 0x1464]
mov edi, dword [esi - 0xc]
mov ebx, 0x62961c
push 0xd
sub ebx, esi
mov dword [ebp - 0x146c], edi
push 0x62961c
sar ebx, 1
call fcn.005b1c4a
mov edx, eax
mov ecx, SysReAllocString
sub ecx, edx
mov dword [ebp - 0x1468], edx
add esp, 8
cmp ecx, edi
jl 0x42a8f8
add edi, edx
js 0x42a902
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x42a781
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 0x42a793
mov ecx, 0x62961c
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 0x42a8d2
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.00461290
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 0x42a854
lea eax, [ebp - 0x146c]
mov dword [ebp - 0x1468], 0
push eax
lea eax, [ebp - 0x1468]
mov dword [ebp - 0x146c], 0
push eax
push 0x62a0f8
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42a847
cmp dword [ebp - 0x146c], 0
je 0x42a847
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.0046128b
add esp, 4
mov bl, 1
jmp 0x42a85f
push ebx
call fcn.0046128b
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 0x42a8a3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x42a90c
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x42a90c
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.005a7b5f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004022df
call edx
jmp 0x42a50e
push 0x80070057
call fcn.004022df
mov ecx, edx
call esi
jmp 0x42a5d5
mov ecx, edi
call edx
jmp 0x42a5fa
push 0x80070057
call fcn.004022df
push 0x80070057
call fcn.004022df
push 0x80070057
call fcn.004022df
call edx
jmp 0x42a8a3